OLD | NEW |
1 This tests for problems where we'd lose the selection in a textarea when making
style and value changes. | 1 This tests for problems where we'd lose the selection in a textarea when making
style and value changes. |
2 | 2 |
| 3 - default value |
| 4 PASS ta.selectionStart is 0 |
| 5 PASS ta.selectionEnd is 0 |
| 6 - set selectionStart/End |
3 PASS ta.selectionStart is 3 | 7 PASS ta.selectionStart is 3 |
4 PASS ta.selectionEnd is 4 | 8 PASS ta.selectionEnd is 4 |
5 - add background style | 9 - add background style |
6 PASS ta.selectionStart is 3 | 10 PASS ta.selectionStart is 3 |
7 PASS ta.selectionEnd is 4 | 11 PASS ta.selectionEnd is 4 |
8 - set value to same value | 12 - set value to same value |
9 PASS ta.selectionStart is 3 | 13 PASS ta.selectionStart is 3 |
10 PASS ta.selectionEnd is 4 | 14 PASS ta.selectionEnd is 4 |
11 - set value to a different value | 15 - set value to a different value |
12 PASS ta.selectionStart is 6 | 16 PASS ta.selectionStart is 6 |
13 PASS ta.selectionEnd is 6 | 17 PASS ta.selectionEnd is 6 |
14 - set selection so we can test again without a trailing newline | 18 - set selection so we can test again without a trailing newline |
15 PASS ta.selectionStart is 3 | 19 PASS ta.selectionStart is 3 |
16 PASS ta.selectionEnd is 4 | 20 PASS ta.selectionEnd is 4 |
17 - add background style | 21 - add background style |
18 PASS ta.selectionStart is 3 | 22 PASS ta.selectionStart is 3 |
19 PASS ta.selectionEnd is 4 | 23 PASS ta.selectionEnd is 4 |
20 - set value to same value | 24 - set value to same value |
21 PASS ta.selectionStart is 3 | 25 PASS ta.selectionStart is 3 |
22 PASS ta.selectionEnd is 4 | 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 |
23 PASS successfullyParsed is true | 42 PASS successfullyParsed is true |
24 | 43 |
25 TEST COMPLETE | 44 TEST COMPLETE |
26 | 45 |
OLD | NEW |