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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/Element-matches.js

Issue 1988983002: Move the dom directory from web-platform-tests/ to wpt/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Check that the matches() method exists on the given Node 2 * Check that the matches() method exists on the given Node
3 */ 3 */
4 function interfaceCheckMatches(type, obj) { 4 function interfaceCheckMatches(type, obj) {
5 if (obj.nodeType === obj.ELEMENT_NODE) { 5 if (obj.nodeType === obj.ELEMENT_NODE) {
6 test(function() { 6 test(function() {
7 assert_idl_attribute(obj, "matches", type + " supports matches"); 7 assert_idl_attribute(obj, "matches", type + " supports matches");
8 }, type + " supports matches") 8 }, type + " supports matches")
9 } 9 }
10 } 10 }
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 for (j = 0; j < u.length; j++) { 118 for (j = 0; j < u.length; j++) {
119 element = root.querySelector("#" + u[j]); 119 element = root.querySelector("#" + u[j]);
120 assert_false(element.matches(q), "The element #" + u[j] + " should not match the selector.") 120 assert_false(element.matches(q), "The element #" + u[j] + " should not match the selector.")
121 } 121 }
122 } 122 }
123 }, type + " Element.matches: " + n + " (with no refNodes): " + q); 123 }, type + " Element.matches: " + n + " (with no refNodes): " + q);
124 } 124 }
125 } 125 }
126 } 126 }
127 } 127 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698