| OLD | NEW |
| 1 This test checks the behavior of the intersectsNode() method on the Range object
. | 1 This test checks the behavior of the intersectsNode() method on the Range object
. |
| 2 It covers all configurations of the node/Range relationship and some exception c
onditions. | 2 It covers all configurations of the node/Range relationship and some exception c
onditions. |
| 3 | 3 |
| 4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 5 | 5 |
| 6 | 6 |
| 7 1.1 Node starts before the range and ends before the range | 7 1.1 Node starts before the range and ends before the range |
| 8 PASS intersects is false | 8 PASS intersects is false |
| 9 | 9 |
| 10 1.2 Node starts before the range, and range ends on a 1 | 10 1.2 Node starts before the range, and range ends on a 1 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 1.11 Node starts before range start and ends after range end | 37 1.11 Node starts before range start and ends after range end |
| 38 PASS intersects is true | 38 PASS intersects is true |
| 39 | 39 |
| 40 1.12 Node starts before range start and range begins and ends on 1 | 40 1.12 Node starts before range start and range begins and ends on 1 |
| 41 PASS intersects is true | 41 PASS intersects is true |
| 42 | 42 |
| 43 1.13 Range starts at 0 and ends at 1 | 43 1.13 Range starts at 0 and ends at 1 |
| 44 PASS intersects is true | 44 PASS intersects is true |
| 45 | 45 |
| 46 2.1 Detached Range, attached node | 46 2.1 Detached Range, attached node |
| 47 PASS detachedRange.intersectsNode(document.getElementById('a1')) threw exception
InvalidStateError: An attempt was made to use an object that is not, or is no l
onger, usable.. | 47 PASS detachedRange.intersectsNode(document.getElementById('a1')) threw exception
InvalidStateError: Failed to execute 'intersectsNode' on 'Range': The range has
no container. Perhaps 'detatch()' has been invoked on this object?. |
| 48 | 48 |
| 49 2.2 attached range, detached node | 49 2.2 attached range, detached node |
| 50 PASS intersects is false | 50 PASS intersects is false |
| 51 | 51 |
| 52 2.3 Node has no parent | 52 2.3 Node has no parent |
| 53 PASS range.intersectsNode(document) threw exception NotFoundError: An attempt wa
s made to reference a Node in a context where it does not exist.. | 53 PASS range.intersectsNode(document) threw exception NotFoundError: An attempt wa
s made to reference a Node in a context where it does not exist.. |
| 54 | 54 |
| 55 2.4 Range has no parent | 55 2.4 Range has no parent |
| 56 PASS range.selectNode(document) threw exception InvalidNodeTypeError: Failed to
execute 'selectNode' on 'Range': the given Node has no parent.. | 56 PASS range.selectNode(document) threw exception InvalidNodeTypeError: Failed to
execute 'selectNode' on 'Range': the given Node has no parent.. |
| 57 | 57 |
| 58 2.5 Wrong documents | 58 2.5 Wrong documents |
| 59 PASS intersects is false | 59 PASS intersects is false |
| 60 | 60 |
| 61 2.6 Node deleted | 61 2.6 Node deleted |
| 62 PASS range.intersectsNode(node) threw exception NotFoundError: An attempt was ma
de to reference a Node in a context where it does not exist.. | 62 PASS range.intersectsNode(node) threw exception NotFoundError: An attempt was ma
de to reference a Node in a context where it does not exist.. |
| 63 | 63 |
| 64 PASS successfullyParsed is true | 64 PASS successfullyParsed is true |
| 65 | 65 |
| 66 TEST COMPLETE | 66 TEST COMPLETE |
| 67 | 67 |
| OLD | NEW |