OLD | NEW |
1 CONSOLE ERROR: Discontiguous selection is not supported. | 1 CONSOLE ERROR: line 21: Discontiguous selection is not supported. |
2 CONSOLE ERROR: The given range isn't in document. | 2 CONSOLE ERROR: line 29: The given range isn't in document. |
3 CONSOLE ERROR: The given range does not belong to the current selection's docume
nt. | 3 CONSOLE ERROR: line 38: The given range does not belong to the current selection
's document. |
4 CONSOLE ERROR: The given range and the current selection belong to two different
document fragments. | 4 CONSOLE ERROR: line 51: The given range and the current selection belong to two
different document fragments. |
5 Test error handling of Selection.addRange(). | 5 Test error handling of Selection.addRange(). |
6 | 6 |
7 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 7 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
8 | 8 |
9 | 9 |
10 Running: testNull | 10 Running: testNull |
11 PASS selection.addRange(null) threw exception TypeError: Failed to execute 'addR
ange' on 'Selection': parameter 1 is not of type 'Range'.. | 11 PASS selection.addRange(null) threw exception TypeError: Failed to execute 'addR
ange' on 'Selection': parameter 1 is not of type 'Range'.. |
12 PASS selection.rangeCount is 1 | 12 PASS selection.rangeCount is 1 |
13 PASS selection.getRangeAt(0).startContainer === document.body is true | 13 PASS selection.getRangeAt(0).startContainer === document.body is true |
14 PASS selection.getRangeAt(0).startOffset is 0 | 14 PASS selection.getRangeAt(0).startOffset is 0 |
(...skipping 20 matching lines...) Expand all Loading... |
35 Running: testOtherDocumentFragments | 35 Running: testOtherDocumentFragments |
36 PASS selection.rangeCount is 1 | 36 PASS selection.rangeCount is 1 |
37 PASS selection.getRangeAt(0).startContainer === document.body is true | 37 PASS selection.getRangeAt(0).startContainer === document.body is true |
38 PASS selection.getRangeAt(0).startOffset is 0 | 38 PASS selection.getRangeAt(0).startOffset is 0 |
39 PASS selection.getRangeAt(0).endContainer === document.body is true | 39 PASS selection.getRangeAt(0).endContainer === document.body is true |
40 PASS selection.getRangeAt(0).endOffset is 0 | 40 PASS selection.getRangeAt(0).endOffset is 0 |
41 PASS successfullyParsed is true | 41 PASS successfullyParsed is true |
42 | 42 |
43 TEST COMPLETE | 43 TEST COMPLETE |
44 | 44 |
OLD | NEW |