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

Unified Diff: LayoutTests/fast/dom/Document/script-tests/createElementNS-namespace-err.js

Issue 106773003: Make arguments to Document methods non-optional (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years 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/Document/script-tests/createElementNS-namespace-err.js
diff --git a/LayoutTests/fast/dom/Document/script-tests/createElementNS-namespace-err.js b/LayoutTests/fast/dom/Document/script-tests/createElementNS-namespace-err.js
index 5f7cbf7114cd8ed077441e463eb57c1a499c5c8b..47ab423e4369d9726732d724368af63bb4f90473 100644
--- a/LayoutTests/fast/dom/Document/script-tests/createElementNS-namespace-err.js
+++ b/LayoutTests/fast/dom/Document/script-tests/createElementNS-namespace-err.js
@@ -37,10 +37,10 @@ function assertEquals(actual, expect, m)
var allNSTests = [
{ args: [undefined, undefined] },
{ args: [null, undefined] },
- { args: [undefined, null], code: 5 },
- { args: [null, null], code: 5 },
+ { args: [undefined, null] },
+ { args: [null, null] },
{ args: [null, ""], code: 5 },
- { args: ["", null], code: 5 },
+ { args: ["", null] },
{ args: ["", ""], code: 5 },
{ args: [null, "<div>"], code: 5 },
{ args: [null, "0div"], code: 5 },
@@ -86,7 +86,7 @@ var allNSTests = [
var allNoNSTests = [
{ args: [undefined] },
- { args: [null], code: 5 },
+ { args: [null] },
{ args: [""], code: 5 },
{ args: ["<div>"], code: 5 },
{ args: ["0div"], code: 5 },
@@ -157,10 +157,6 @@ function runNSTests(tests, doc, createFunctionName)
}
}
-// Moz throws a "Not enough arguments" exception in these, we don't:
-shouldBeEqualToString("document.createElementNS().toString()", "[object Element]");
-shouldBeEqualToString("document.createElementNS(\"http://www.example.com\").toString()", "[object Element]");
-
debug("HTML tests:")
runNSTests(allNSTests, document, "createElementNS");
runNSTests(allNoNSTests, document, "createElement");

Powered by Google App Engine
This is Rietveld 408576698