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

Unified Diff: LayoutTests/fast/dom/SelectorAPI/script-tests/viewless-document.js

Issue 22875013: Make several DOMImplementation API arguments mandatory (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/SelectorAPI/script-tests/viewless-document.js
diff --git a/LayoutTests/fast/dom/SelectorAPI/script-tests/viewless-document.js b/LayoutTests/fast/dom/SelectorAPI/script-tests/viewless-document.js
index 7a9d43e2baca4fec79d15373abd98700078cc57d..81c0090a563dfe319ce8a507a5117f2f9cc998a9 100644
--- a/LayoutTests/fast/dom/SelectorAPI/script-tests/viewless-document.js
+++ b/LayoutTests/fast/dom/SelectorAPI/script-tests/viewless-document.js
@@ -2,7 +2,7 @@ description(
"This tests that querySelector, querySelectorAll and matchesSelector (webkitMatchesSelector) don't crash when used in a viewless document."
);
-var testDoc = document.implementation.createDocument("http://www.w3.org/1999/xhtml", "html");
+var testDoc = document.implementation.createDocument("http://www.w3.org/1999/xhtml", "html", null);
testDoc.documentElement.appendChild(testDoc.createElement("body"));
testDoc.body.appendChild(testDoc.createElement("p")).id = "p1";
testDoc.getElementById("p1").appendChild(testDoc.createElement("span")).id = "s1";

Powered by Google App Engine
This is Rietveld 408576698