Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Unified Diff: LayoutTests/fast/dom/DOMImplementation/script-tests/createDocument-namespace-err.js

Issue 22875013: Make several DOMImplementation API arguments mandatory (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix createDocument() args Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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");

Powered by Google App Engine
This is Rietveld 408576698