Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com --- dlls/mshtml/tests/documentmode.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js index c20f6ee..d4704a4 100644 --- a/dlls/mshtml/tests/documentmode.js +++ b/dlls/mshtml/tests/documentmode.js @@ -29,7 +29,7 @@ sync_test("elem_props", function() { ok(!(prop in elem), prop + " found in element."); }
- var v = document.documentMode; + var v = document.documentMode, r;
test_exposed("doScroll", v < 11); test_exposed("readyState", v < 11); @@ -49,6 +49,9 @@ sync_test("elem_props", function() { test_exposed("msSetPointerCapture", v >= 10); if (v >= 9) test_exposed("spellcheck", v >= 10);
+ r = Object.prototype.toString.call(elem); + ok(r === (v < 9 ? "[object Object]" : "[object HTMLHtmlElement]"), "documentElement toString returned " + r); + elem = document.createElement("style"); test_exposed("media", true); test_exposed("type", true); @@ -58,6 +61,8 @@ sync_test("elem_props", function() { test_exposed("readyState", v < 11); test_exposed("styleSheet", v < 11); test_exposed("classList", v >= 10); + r = Object.prototype.toString.call(elem); + ok(r === (v < 9 ? "[object Object]" : "[object HTMLStyleElement]"), "createElement('style') toString returned " + r); });
sync_test("doc_props", function() { @@ -785,4 +790,7 @@ sync_test("elem_attr", function() { ok(r === "cls2", "class attr = " + r); r = elem.getAttribute("className"); ok(r === "cls3", "className attr = " + r); + + r = Object.prototype.toString.call(elem); + ok(r === (v < 9 ? "[object Object]" : "[object HTMLDivElement]"), "toString returned " + r); });