OLD | NEW |
| (Empty) |
1 This tests for problems where we'd lose the selection in a textarea when making
style and value changes. | |
2 | |
3 - default value | |
4 PASS ta.selectionStart is 0 | |
5 PASS ta.selectionEnd is 0 | |
6 - set selectionStart/End | |
7 PASS ta.selectionStart is 3 | |
8 PASS ta.selectionEnd is 4 | |
9 - add background style | |
10 PASS ta.selectionStart is 3 | |
11 PASS ta.selectionEnd is 4 | |
12 - set value to same value | |
13 PASS ta.selectionStart is 3 | |
14 PASS ta.selectionEnd is 4 | |
15 - set value to a different value | |
16 PASS ta.selectionStart is 6 | |
17 PASS ta.selectionEnd is 6 | |
18 - set selection so we can test again without a trailing newline | |
19 PASS ta.selectionStart is 3 | |
20 PASS ta.selectionEnd is 4 | |
21 - add background style | |
22 PASS ta.selectionStart is 3 | |
23 PASS ta.selectionEnd is 4 | |
24 - set value to same value | |
25 PASS ta.selectionStart is 3 | |
26 PASS ta.selectionEnd is 4 | |
27 - reset form | |
28 PASS ta.selectionStart is 7 | |
29 PASS ta.selectionEnd is 7 | |
30 - set new defaultValue | |
31 PASS ta.selectionStart is 9 | |
32 PASS ta.selectionEnd is 9 | |
33 - set same defaultValue | |
34 PASS ta.selectionStart is 9 | |
35 PASS ta.selectionEnd is 9 | |
36 - append a text node | |
37 PASS ta.selectionStart is 12 | |
38 PASS ta.selectionEnd is 12 | |
39 - append a empty text node | |
40 PASS ta.selectionStart is 12 | |
41 PASS ta.selectionEnd is 12 | |
42 PASS successfullyParsed is true | |
43 | |
44 TEST COMPLETE | |
45 | |
OLD | NEW |