| OLD | NEW |
| 1 This test makes sure the closest() API works correctly | 1 This test makes sure the closest() API works correctly |
| 2 | 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 | 4 |
| 5 | 5 |
| 6 PASS theTarget.closest("#theTarget") is theTarget | 6 PASS theTarget.closest("#theTarget") is theTarget |
| 7 PASS theTarget.closest("ancestor") is ancestor | 7 PASS theTarget.closest("ancestor") is ancestor |
| 8 PASS theTarget.closest("tribe ancestor") is ancestor | 8 PASS theTarget.closest("tribe ancestor") is ancestor |
| 9 PASS theTarget.closest("tribe > ancestor") is ancestor | 9 PASS theTarget.closest("tribe > ancestor") is ancestor |
| 10 PASS theTarget.closest("realm + ancestor") is ancestor | 10 PASS theTarget.closest("realm + ancestor") is ancestor |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 PASS sour.closest("a, b, c") is c | 29 PASS sour.closest("a, b, c") is c |
| 30 PASS sour.closest("a, b") is b | 30 PASS sour.closest("a, b") is b |
| 31 PASS sour.closest("e, d, c, b, a") is e | 31 PASS sour.closest("e, d, c, b, a") is e |
| 32 PASS sour.closest("d, c, b, a") is d | 32 PASS sour.closest("d, c, b, a") is d |
| 33 PASS sour.closest("c, b, a") is c | 33 PASS sour.closest("c, b, a") is c |
| 34 PASS sour.closest("b, a") is b | 34 PASS sour.closest("b, a") is b |
| 35 PASS sour.closest("a") is a | 35 PASS sour.closest("a") is a |
| 36 PASS document.closest is undefined | 36 PASS document.closest is undefined |
| 37 PASS document.closest() threw exception TypeError: document.closest is not a fun
ction. | 37 PASS document.closest() threw exception TypeError: document.closest is not a fun
ction. |
| 38 PASS theTarget.closest() threw exception TypeError: Failed to execute 'closest'
on 'Element': 1 argument required, but only 0 present.. | 38 PASS theTarget.closest() threw exception TypeError: Failed to execute 'closest'
on 'Element': 1 argument required, but only 0 present.. |
| 39 PASS theTarget.closest("") threw exception SyntaxError: Failed to execute 'close
st' on 'Element': '' is not a valid selector.. | 39 PASS theTarget.closest("") threw exception SyntaxError: Failed to execute 'close
st' on 'Element': The provided selector is empty.. |
| 40 PASS theTarget.closest(".123") threw exception SyntaxError: Failed to execute 'c
losest' on 'Element': '.123' is not a valid selector.. | 40 PASS theTarget.closest(".123") threw exception SyntaxError: Failed to execute 'c
losest' on 'Element': '.123' is not a valid selector.. |
| 41 PASS theTarget.closest(" ") threw exception SyntaxError: Failed to execute 'c
losest' on 'Element': ' ' is not a valid selector.. | 41 PASS theTarget.closest(" ") threw exception SyntaxError: Failed to execute 'c
losest' on 'Element': ' ' is not a valid selector.. |
| 42 PASS theTarget.closest(")") threw exception SyntaxError: Failed to execute 'clos
est' on 'Element': ')' is not a valid selector.. | 42 PASS theTarget.closest(")") threw exception SyntaxError: Failed to execute 'clos
est' on 'Element': ')' is not a valid selector.. |
| 43 PASS theTarget.closest("(") threw exception SyntaxError: Failed to execute 'clos
est' on 'Element': '(' is not a valid selector.. | 43 PASS theTarget.closest("(") threw exception SyntaxError: Failed to execute 'clos
est' on 'Element': '(' is not a valid selector.. |
| 44 PASS theTarget.closest("()") threw exception SyntaxError: Failed to execute 'clo
sest' on 'Element': '()' is not a valid selector.. | 44 PASS theTarget.closest("()") threw exception SyntaxError: Failed to execute 'clo
sest' on 'Element': '()' is not a valid selector.. |
| 45 PASS theTarget.closest("^_^") threw exception SyntaxError: Failed to execute 'cl
osest' on 'Element': '^_^' is not a valid selector.. | 45 PASS theTarget.closest("^_^") threw exception SyntaxError: Failed to execute 'cl
osest' on 'Element': '^_^' is not a valid selector.. |
| 46 PASS theTarget.closest("{") threw exception SyntaxError: Failed to execute 'clos
est' on 'Element': '{' is not a valid selector.. | 46 PASS theTarget.closest("{") threw exception SyntaxError: Failed to execute 'clos
est' on 'Element': '{' is not a valid selector.. |
| 47 PASS theTarget.closest("}") threw exception SyntaxError: Failed to execute 'clos
est' on 'Element': '}' is not a valid selector.. | 47 PASS theTarget.closest("}") threw exception SyntaxError: Failed to execute 'clos
est' on 'Element': '}' is not a valid selector.. |
| 48 PASS theTarget.closest("{}") threw exception SyntaxError: Failed to execute 'clo
sest' on 'Element': '{}' is not a valid selector.. | 48 PASS theTarget.closest("{}") threw exception SyntaxError: Failed to execute 'clo
sest' on 'Element': '{}' is not a valid selector.. |
| 49 PASS successfullyParsed is true | 49 PASS successfullyParsed is true |
| 50 | 50 |
| 51 TEST COMPLETE | 51 TEST COMPLETE |
| 52 | 52 |
| OLD | NEW |