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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/SelectorAPI/script-tests/detached-element.js

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 11 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: third_party/WebKit/LayoutTests/fast/dom/SelectorAPI/script-tests/detached-element.js
diff --git a/third_party/WebKit/LayoutTests/fast/dom/SelectorAPI/script-tests/detached-element.js b/third_party/WebKit/LayoutTests/fast/dom/SelectorAPI/script-tests/detached-element.js
deleted file mode 100644
index 289ebbd3ec01cb72ac0760cfa36051221d5681cd..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/SelectorAPI/script-tests/detached-element.js
+++ /dev/null
@@ -1,23 +0,0 @@
-description(
-"This tests that querySelector, querySelectorAll and matchesSelector (webkitMatchesSelector) work with elements that are not in a document yet."
-);
-
-var root = document.createElement('div');
-var correctNode = document.createElement('div');
-correctNode.setAttribute("id", "testId")
-root.appendChild(correctNode);
-var noChild = document.createElement('div');
-
-shouldBe("root.querySelector('div')", "correctNode");
-shouldBe("root.querySelector('#testId')", "correctNode");
-
-shouldBe("root.querySelectorAll('div').length", "1");
-shouldBe("root.querySelectorAll('div').item(0)", "correctNode");
-shouldBe("root.querySelectorAll('#testId').length", "1");
-shouldBe("root.querySelectorAll('#testId').item(0)", "correctNode");
-
-shouldBeNull("noChild.querySelector('div')");
-shouldBe("noChild.querySelectorAll('div').length", "0");
-
-shouldBeTrue("correctNode.webkitMatchesSelector('div')");
-shouldBeTrue("correctNode.webkitMatchesSelector('#testId')");

Powered by Google App Engine
This is Rietveld 408576698