| OLD | NEW |
| 1 This test checks if setSelectionRange(), selectionStart, and selectionEnd on a t
extarea and input work as expected. This includes checking edge cases such as ou
t-of-bound values. | 1 This test checks if setSelectionRange(), selectionStart, and selectionEnd on a t
extarea and input work as expected. This includes checking edge cases such as ou
t-of-bound values. |
| 2 | 2 |
| 3 If this test passed you'll see a bunch of correct selection ranges below. Check
the expected file for the correct ranges. | 3 If this test passed you'll see a bunch of correct selection ranges below. Check
the expected file for the correct ranges. |
| 4 | 4 |
| 5 | 5 |
| 6 ===textarea=== | 6 ===textarea=== |
| 7 setSelectionRange(): | 7 setSelectionRange(): |
| 8 3, 7 | 8 3, 7 |
| 9 5, 5 | 9 5, 5 |
| 10 42, 48 | 10 42, 48 |
| 11 2, 2 | 11 2, 2 |
| 12 | 12 |
| 13 selectionStart: | 13 selectionStart: |
| 14 3, 3 | 14 3, 3 |
| 15 7, 7 | 15 7, 7 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 ===button=== | 54 ===button=== |
| 55 button.selectionStart did not throw exception | 55 button.selectionStart did not throw exception |
| 56 button.selectionStart = 0 threw exception | 56 button.selectionStart = 0 threw exception |
| 57 button.selectionEnd did not throw exception | 57 button.selectionEnd did not throw exception |
| 58 button.selectionEnd = 0 threw exception | 58 button.selectionEnd = 0 threw exception |
| 59 button.selectionDirection did not throw exception | 59 button.selectionDirection did not throw exception |
| 60 button.selectionDirection = 'none' threw exception | 60 button.selectionDirection = 'none' threw exception |
| 61 button.setSelectionRange defined | 61 button.setSelectionRange defined |
| 62 button.setSelectionRange(0,0) threw exception | 62 button.setSelectionRange(0,0) threw exception |
| OLD | NEW |