| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |