From 1c134c16d3327e41f22d9a5532f9e2ed49255cf2 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Fri, 17 May 2013 12:34:59 +0200 Subject: [PATCH] mshtml: Added parsing custom tag name tests. --- dlls/mshtml/tests/jstest.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dlls/mshtml/tests/jstest.html b/dlls/mshtml/tests/jstest.html index 4185112013a..d599756372d 100644 --- a/dlls/mshtml/tests/jstest.html +++ b/dlls/mshtml/tests/jstest.html @@ -179,6 +179,17 @@ function test_forin() { ok(cnt > 100, "cnt = " + cnt); } +function test_customtag() { + document.body.innerHTML = 'test
'; + + var children = document.body.childNodes; + + ok(children.length === 3, "children.length = " + children.length); + ok(children[0].data === "test", "children[0].data = " + children[0].data); + ok(children[1].tagName === "UNK", "children[1].tagName = " + children[1].tagName); + ok(children[2].tagName === "BR", "children[2].tagName = " + children[2].tagName); +} + var globalVar = false; function runTests() { @@ -200,6 +211,7 @@ function runTests() { test_arg_conv(); test_override_functions(); test_forin(); + test_customtag(); var r = window.execScript("globalVar = true;"); ok(r === undefined, "execScript returned " + r);