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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 2.1 Detached Range, attached node | 46 2.1 Detached Range, attached node |
47 PASS detachedRange.intersectsNode(document.getElementById('a1')) threw exception
Error: InvalidStateError: DOM Exception 11. | 47 PASS detachedRange.intersectsNode(document.getElementById('a1')) threw exception
Error: InvalidStateError: DOM Exception 11. |
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 Error: NotFoundError: DOM Ex
ception 8. | 53 PASS range.intersectsNode(document) threw exception Error: NotFoundError: DOM Ex
ception 8. |
54 | 54 |
55 2.4 Range has no parent | 55 2.4 Range has no parent |
56 PASS range.selectNode(document) threw exception Error: INVALID_NODE_TYPE_ERR: DO
M Range Exception 2. | 56 PASS range.selectNode(document) threw exception Error: InvalidNodeTypeError: DOM
Exception 24. |
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 Error: NotFoundError: DOM Except
ion 8. | 62 PASS range.intersectsNode(node) threw exception Error: NotFoundError: DOM Except
ion 8. |
63 | 63 |
64 PASS successfullyParsed is true | 64 PASS successfullyParsed is true |
65 | 65 |
66 TEST COMPLETE | 66 TEST COMPLETE |
67 | 67 |
OLD | NEW |