| OLD | NEW |
| 1 This is a testharness.js-based test. | 1 This is a testharness.js-based test. |
| 2 Found 29 tests. 26 PASS 3 FAIL 0 TIMEOUT 0 NOTRUN |
| 2 PASS Element.closest with context node 'test12' and selector 'select' | 3 PASS Element.closest with context node 'test12' and selector 'select' |
| 3 PASS Element.closest with context node 'test13' and selector 'fieldset' | 4 PASS Element.closest with context node 'test13' and selector 'fieldset' |
| 4 PASS Element.closest with context node 'test13' and selector 'div' | 5 PASS Element.closest with context node 'test13' and selector 'div' |
| 5 PASS Element.closest with context node 'test3' and selector 'body' | 6 PASS Element.closest with context node 'test3' and selector 'body' |
| 6 PASS Element.closest with context node 'test4' and selector '[default]' | 7 PASS Element.closest with context node 'test4' and selector '[default]' |
| 7 PASS Element.closest with context node 'test4' and selector '[selected]' | 8 PASS Element.closest with context node 'test4' and selector '[selected]' |
| 8 PASS Element.closest with context node 'test11' and selector '[selected]' | 9 PASS Element.closest with context node 'test11' and selector '[selected]' |
| 9 PASS Element.closest with context node 'test12' and selector '[name="form-a"]' | 10 PASS Element.closest with context node 'test12' and selector '[name="form-a"]' |
| 10 PASS Element.closest with context node 'test13' and selector 'form[name="form-a"
]' | 11 PASS Element.closest with context node 'test13' and selector 'form[name="form-a"
]' |
| 11 PASS Element.closest with context node 'test9' and selector 'input[required]' | 12 PASS Element.closest with context node 'test9' and selector 'input[required]' |
| (...skipping 17 matching lines...) Expand all Loading... |
| 29 }" did not throw | 30 }" did not throw |
| 30 FAIL Element.closest with context node 'test4' and selector 'select > :scope' sh
ould throw assert_throws: function "function () { | 31 FAIL Element.closest with context node 'test4' and selector 'select > :scope' sh
ould throw assert_throws: function "function () { |
| 31 el.closest(aSelector); | 32 el.closest(aSelector); |
| 32 }" did not throw | 33 }" did not throw |
| 33 FAIL Element.closest with context node 'test4' and selector 'div > :scope' shoul
d throw assert_throws: function "function () { | 34 FAIL Element.closest with context node 'test4' and selector 'div > :scope' shoul
d throw assert_throws: function "function () { |
| 34 el.closest(aSelector); | 35 el.closest(aSelector); |
| 35 }" did not throw | 36 }" did not throw |
| 36 PASS Element.closest with context node 'test4' and selector ':has(> :scope)' sho
uld throw | 37 PASS Element.closest with context node 'test4' and selector ':has(> :scope)' sho
uld throw |
| 37 Harness: the test ran to completion. | 38 Harness: the test ran to completion. |
| 38 | 39 |
| OLD | NEW |