| OLD | NEW |
| 1 CONSOLE ERROR: line 21: Discontiguous selection is not supported. | |
| 2 CONSOLE ERROR: line 29: The given range isn't in document. | 1 CONSOLE ERROR: line 29: The given range isn't in document. |
| 3 CONSOLE ERROR: line 51: The given range and the current selection belong to two
different document fragments. | |
| 4 Test error handling of Selection.addRange(). | 2 Test error handling of Selection.addRange(). |
| 5 | 3 |
| 6 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
". |
| 7 | 5 |
| 8 | 6 |
| 9 Running: testNull | 7 Running: testNull |
| 10 PASS selection.addRange(null) threw exception TypeError: Failed to execute 'addR
ange' on 'Selection': parameter 1 is not of type 'Range'.. | 8 PASS selection.addRange(null) threw exception TypeError: Failed to execute 'addR
ange' on 'Selection': parameter 1 is not of type 'Range'.. |
| 11 PASS selection.rangeCount is 1 | 9 PASS selection.rangeCount is 1 |
| 12 PASS selection.getRangeAt(0).startContainer === document.body is true | 10 PASS selection.getRangeAt(0).startContainer === document.body is true |
| 13 PASS selection.getRangeAt(0).startOffset is 0 | 11 PASS selection.getRangeAt(0).startOffset is 0 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 34 Running: testOtherDocumentFragments | 32 Running: testOtherDocumentFragments |
| 35 PASS selection.rangeCount is 1 | 33 PASS selection.rangeCount is 1 |
| 36 PASS selection.getRangeAt(0).startContainer === document.body is true | 34 PASS selection.getRangeAt(0).startContainer === document.body is true |
| 37 PASS selection.getRangeAt(0).startOffset is 0 | 35 PASS selection.getRangeAt(0).startOffset is 0 |
| 38 PASS selection.getRangeAt(0).endContainer === document.body is true | 36 PASS selection.getRangeAt(0).endContainer === document.body is true |
| 39 PASS selection.getRangeAt(0).endOffset is 0 | 37 PASS selection.getRangeAt(0).endOffset is 0 |
| 40 PASS successfullyParsed is true | 38 PASS successfullyParsed is true |
| 41 | 39 |
| 42 TEST COMPLETE | 40 TEST COMPLETE |
| 43 | 41 |
| OLD | NEW |