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 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 3, 5 | 45 3, 5 |
46 2, 2 | 46 2, 2 |
47 2, 48 | 47 2, 48 |
48 2, 48 | 48 2, 48 |
49 7, 7 | 49 7, 7 |
50 | 50 |
51 selectionStart and selectionEnd in focus handler don't return wrong values 0,0: | 51 selectionStart and selectionEnd in focus handler don't return wrong values 0,0: |
52 7, 7 | 52 7, 7 |
53 | 53 |
54 ===button=== | 54 ===button=== |
55 button.selectionStart threw exception | 55 button.selectionStart did not throw exception |
56 button.selectionStart = 0 threw exception | 56 button.selectionStart = 0 threw exception |
57 button.selectionEnd threw 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 |
| 60 button.selectionDirection = 'none' threw exception |
59 button.setSelectionRange defined | 61 button.setSelectionRange defined |
60 button.setSelectionRange(0,0) threw exception | 62 button.setSelectionRange(0,0) threw exception |
OLD | NEW |