Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(776)

Side by Side Diff: LayoutTests/fast/forms/textarea-selection-preservation-expected.txt

Issue 392573002: HTMLTextAreaElement.setSelectionRange should not change focus. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix tests Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/textarea-selection-preservation.html ('k') | LayoutTests/fast/spatial-navigation/snav-textarea.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698