| OLD | NEW |
| 1 CONSOLE ERROR: The given range is null. | |
| 2 CONSOLE WARNING: 'Range.detach' is now a no-op, as per DOM (https://dom.spec.wha
twg.org/#dom-range-detach). | 1 CONSOLE WARNING: 'Range.detach' is now a no-op, as per DOM (https://dom.spec.wha
twg.org/#dom-range-detach). |
| 3 CONSOLE ERROR: Discontiguous selection is not supported. | 2 CONSOLE ERROR: Discontiguous selection is not supported. |
| 4 CONSOLE ERROR: The given range isn't in document. | 3 CONSOLE ERROR: The given range isn't in document. |
| 5 CONSOLE ERROR: The given range does not belong to the current selection's docume
nt. | 4 CONSOLE ERROR: The given range does not belong to the current selection's docume
nt. |
| 6 CONSOLE ERROR: The given range and the current selection belong to two different
document fragments. | 5 CONSOLE ERROR: The given range and the current selection belong to two different
document fragments. |
| 7 Test error handling of Selection.addRange(). | 6 Test error handling of Selection.addRange(). |
| 8 | 7 |
| 9 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 8 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 10 | 9 |
| 11 | 10 |
| 12 Running: testNull | 11 Running: testNull |
| 12 PASS selection.addRange(null) threw exception TypeError: Failed to execute 'addR
ange' on 'Selection': parameter 1 is not of type 'Range'.. |
| 13 PASS selection.rangeCount is 1 | 13 PASS selection.rangeCount is 1 |
| 14 PASS selection.getRangeAt(0).startContainer === document.body is true | 14 PASS selection.getRangeAt(0).startContainer === document.body is true |
| 15 PASS selection.getRangeAt(0).startOffset is 0 | 15 PASS selection.getRangeAt(0).startOffset is 0 |
| 16 PASS selection.getRangeAt(0).endContainer === document.body is true | 16 PASS selection.getRangeAt(0).endContainer === document.body is true |
| 17 PASS selection.getRangeAt(0).endOffset is 0 | 17 PASS selection.getRangeAt(0).endOffset is 0 |
| 18 Running: testDetachedRange | 18 Running: testDetachedRange |
| 19 PASS selection.rangeCount is 1 | 19 PASS selection.rangeCount is 1 |
| 20 PASS selection.getRangeAt(0).startContainer === document.body is true | 20 PASS selection.getRangeAt(0).startContainer === document.body is true |
| 21 PASS selection.getRangeAt(0).startOffset is 0 | 21 PASS selection.getRangeAt(0).startOffset is 0 |
| 22 PASS selection.getRangeAt(0).endContainer === document.body is true | 22 PASS selection.getRangeAt(0).endContainer === document.body is true |
| (...skipping 13 matching lines...) Expand all Loading... |
| 36 Running: testOtherDocumentFragments | 36 Running: testOtherDocumentFragments |
| 37 PASS selection.rangeCount is 1 | 37 PASS selection.rangeCount is 1 |
| 38 PASS selection.getRangeAt(0).startContainer === document.body is true | 38 PASS selection.getRangeAt(0).startContainer === document.body is true |
| 39 PASS selection.getRangeAt(0).startOffset is 0 | 39 PASS selection.getRangeAt(0).startOffset is 0 |
| 40 PASS selection.getRangeAt(0).endContainer === document.body is true | 40 PASS selection.getRangeAt(0).endContainer === document.body is true |
| 41 PASS selection.getRangeAt(0).endOffset is 0 | 41 PASS selection.getRangeAt(0).endOffset is 0 |
| 42 PASS successfullyParsed is true | 42 PASS successfullyParsed is true |
| 43 | 43 |
| 44 TEST COMPLETE | 44 TEST COMPLETE |
| 45 | 45 |
| OLD | NEW |