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 0, 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 |
16 0, 7 | 16 48, 48 |
17 48, 48 | 17 48, 48 |
18 3, 48 | 18 3, 48 |
19 | 19 |
20 selectionEnd: | 20 selectionEnd: |
21 3, 5 | 21 3, 5 |
22 2, 2 | 22 2, 2 |
23 0, 0 | 23 2, 48 |
24 0, 48 | 24 2, 48 |
25 7, 7 | 25 7, 7 |
26 | 26 |
27 ===input=== | 27 ===input=== |
28 setSelectionRange(): | 28 setSelectionRange(): |
29 3, 7 | 29 3, 7 |
30 0, 5 | 30 5, 5 |
31 42, 48 | 31 42, 48 |
32 2, 2 | 32 2, 2 |
33 | 33 |
34 selectionStart: | 34 selectionStart: |
35 3, 3 | 35 3, 3 |
36 7, 7 | 36 7, 7 |
37 0, 7 | 37 48, 48 |
38 48, 48 | 38 48, 48 |
39 3, 48 | 39 3, 48 |
40 | 40 |
41 selectionEnd: | 41 selectionEnd: |
42 3, 5 | 42 3, 5 |
43 2, 2 | 43 2, 2 |
44 0, 0 | 44 2, 48 |
45 0, 48 | 45 2, 48 |
46 7, 7 | 46 7, 7 |
47 | 47 |
48 ===button=== | 48 ===button=== |
49 button.selectionStart threw exception | 49 button.selectionStart threw exception |
50 button.selectionStart = 0 threw exception | 50 button.selectionStart = 0 threw exception |
51 button.selectionEnd threw exception | 51 button.selectionEnd threw exception |
52 button.selectionEnd = 0 threw exception | 52 button.selectionEnd = 0 threw exception |
53 button.setSelectionRange defined | 53 button.setSelectionRange defined |
54 button.setSelectionRange(0,0) threw exception | 54 button.setSelectionRange(0,0) threw exception |
OLD | NEW |