Index: LayoutTests/fast/dom/DOMImplementation/script-tests/createDocument-namespace-err.js |
diff --git a/LayoutTests/fast/dom/DOMImplementation/script-tests/createDocument-namespace-err.js b/LayoutTests/fast/dom/DOMImplementation/script-tests/createDocument-namespace-err.js |
index bc36f551bb2def6787ff6691e1a23bc67ba4290b..0e00b50ba61f1d82ebb1009fab0ab3b96fd0bd22 100644 |
--- a/LayoutTests/fast/dom/DOMImplementation/script-tests/createDocument-namespace-err.js |
+++ b/LayoutTests/fast/dom/DOMImplementation/script-tests/createDocument-namespace-err.js |
@@ -137,8 +137,7 @@ function runNSTests(tests, doc, createFunctionName) |
} |
} |
-// Moz throws a "Not enough arguments" exception in these, we don't: |
-shouldBeEqualToString("document.implementation.createDocument().toString()", "[object Document]"); |
-shouldBeEqualToString("document.implementation.createDocument(\"http://www.example.com\").toString()", "[object Document]"); |
+shouldThrow("document.implementation.createDocument()", "'TypeError: Not enough arguments'"); |
+shouldThrow("document.implementation.createDocument(\"http://www.example.com\")", "'TypeError: Not enough arguments'"); |
runNSTests(allNSTests, document.implementation, "createDocument"); |