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

Unified Diff: LayoutTests/fast/dom/Element/matches-expected.txt

Issue 133643006: Revert "Revert "Implement Element.matches(selectors)"" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « LayoutTests/fast/dom/Element/matches.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/dom/Element/matches-expected.txt
diff --git a/LayoutTests/fast/dom/Element/matches-expected.txt b/LayoutTests/fast/dom/Element/matches-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..5f31448fd17598cd6c1c9145e28c5e104a2cb106
--- /dev/null
+++ b/LayoutTests/fast/dom/Element/matches-expected.txt
@@ -0,0 +1,18 @@
+PASS element.matches() threw exception TypeError: Failed to execute 'matches' on 'Element': 1 argument required, but only 0 present..
+PASS element.matches('body') is true
+PASS element.matches('html > .foo') is true
+PASS element.matches('html') is false
+PASS element.matches('html > .bar') is false
+PASS element.matches('') threw exception SyntaxError: Failed to execute 'matches' on 'Element': '' is not a valid selector..
+PASS element.matches('!invalid!') threw exception SyntaxError: Failed to execute 'matches' on 'Element': '!invalid!' is not a valid selector..
+PASS element.webkitMatchesSelector() threw exception TypeError: Failed to execute 'webkitMatchesSelector' on 'Element': 1 argument required, but only 0 present..
+PASS element.webkitMatchesSelector('body') is true
+PASS element.webkitMatchesSelector('html > .foo') is true
+PASS element.webkitMatchesSelector('html') is false
+PASS element.webkitMatchesSelector('html > .bar') is false
+PASS element.webkitMatchesSelector('') threw exception SyntaxError: Failed to execute 'webkitMatchesSelector' on 'Element': '' is not a valid selector..
+PASS element.webkitMatchesSelector('!invalid!') threw exception SyntaxError: Failed to execute 'webkitMatchesSelector' on 'Element': '!invalid!' is not a valid selector..
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/fast/dom/Element/matches.html ('k') | Source/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698