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

Unified Diff: LayoutTests/fast/selectors/element-closest-scope-expected.txt

Issue 701723007: Adding Element.closest() API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « LayoutTests/fast/selectors/element-closest-scope.html ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/selectors/element-closest-scope-expected.txt
diff --git a/LayoutTests/fast/selectors/element-closest-scope-expected.txt b/LayoutTests/fast/selectors/element-closest-scope-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..6f7f5f86f2d867c17bfcf87e99c1e5491e80e67a
--- /dev/null
+++ b/LayoutTests/fast/selectors/element-closest-scope-expected.txt
@@ -0,0 +1,28 @@
+This test makes sure that :scope works correctly with the closest() API.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS theTarget.closest(":scope") is theTarget
+PASS theTarget.closest(":not(:scope)") is body
+PASS theTarget.closest("body :scope") is theTarget
+PASS theTarget.closest("body > :scope") is theTarget
+PASS theTarget.closest("body:scope") is null
+PASS theTarget.closest("sibling + :scope") is theTarget
+PASS theTarget.closest("sibling ~ :scope") is theTarget
+PASS theTarget.closest("#theTarget:scope") is theTarget
+PASS theTarget.closest(":scope#theTarget") is theTarget
+PASS theTarget.closest("[webkit]:scope#theTarget") is theTarget
+PASS theTarget.closest(":not([webkit=fast]):scope#theTarget") is null
+PASS theTarget.closest(":scope target") is null
+PASS theTarget.closest(":scope > target") is null
+PASS theTarget.closest(":scope + target") is null
+PASS theTarget.closest(":scope ~ target") is null
+PASS theTarget.closest(":scope *") is null
+PASS theTarget.closest(":scope > *") is null
+PASS theTarget.closest(":scope + *") is null
+PASS theTarget.closest(":scope ~ *") is null
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/fast/selectors/element-closest-scope.html ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698