| CONSOLE ERROR: line 21: Discontiguous selection is not supported. |
| CONSOLE ERROR: line 29: The given range isn't in document. |
| CONSOLE ERROR: line 51: The given range and the current selection belong to two different document fragments. |
| Test error handling of Selection.addRange(). |
| |
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| |
| |
| Running: testNull |
| PASS selection.addRange(null) threw exception TypeError: Failed to execute 'addRange' on 'Selection': parameter 1 is not of type 'Range'.. |
| PASS selection.rangeCount is 1 |
| PASS selection.getRangeAt(0).startContainer === document.body is true |
| PASS selection.getRangeAt(0).startOffset is 0 |
| PASS selection.getRangeAt(0).endContainer === document.body is true |
| PASS selection.getRangeAt(0).endOffset is 0 |
| Running: testEmptyRange |
| PASS selection.rangeCount is 1 |
| PASS selection.getRangeAt(0).startContainer === document.body is true |
| PASS selection.getRangeAt(0).startOffset is 0 |
| PASS selection.getRangeAt(0).endContainer === document.body is true |
| PASS selection.getRangeAt(0).endOffset is 0 |
| Running: testNotInDocumentRange |
| PASS selection.rangeCount is 1 |
| PASS selection.getRangeAt(0).startContainer === document.body is true |
| PASS selection.getRangeAt(0).startOffset is 0 |
| PASS selection.getRangeAt(0).endContainer === document.body is true |
| PASS selection.getRangeAt(0).endOffset is 0 |
| Running: testOtherDocument |
| PASS selection.rangeCount is 1 |
| PASS selection.getRangeAt(0).startContainer === document.body is true |
| PASS selection.getRangeAt(0).startOffset is 0 |
| PASS selection.getRangeAt(0).endContainer === document.body is true |
| PASS selection.getRangeAt(0).endOffset is 0 |
| Running: testOtherDocumentFragments |
| PASS selection.rangeCount is 1 |
| PASS selection.getRangeAt(0).startContainer === document.body is true |
| PASS selection.getRangeAt(0).startOffset is 0 |
| PASS selection.getRangeAt(0).endContainer === document.body is true |
| PASS selection.getRangeAt(0).endOffset is 0 |
| PASS successfullyParsed is true |
| |
| TEST COMPLETE |
| |