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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/forms/textarea-selection-preservation-expected.txt
diff --git a/LayoutTests/fast/forms/textarea-selection-preservation-expected.txt b/LayoutTests/fast/forms/textarea-selection-preservation-expected.txt
index 6f1d82ee85db76eacf2342b7d47f80ebf54d07f8..fa168e7ed6e55cc4f2db33bf8ce097e4d0711376 100644
--- a/LayoutTests/fast/forms/textarea-selection-preservation-expected.txt
+++ b/LayoutTests/fast/forms/textarea-selection-preservation-expected.txt
@@ -1,5 +1,9 @@
This tests for problems where we'd lose the selection in a textarea when making style and value changes.
+- default value
+PASS ta.selectionStart is 0
+PASS ta.selectionEnd is 0
+- set selectionStart/End
PASS ta.selectionStart is 3
PASS ta.selectionEnd is 4
- add background style
@@ -20,6 +24,21 @@ PASS ta.selectionEnd is 4
- set value to same value
PASS ta.selectionStart is 3
PASS ta.selectionEnd is 4
+- reset form
+PASS ta.selectionStart is 7
+PASS ta.selectionEnd is 7
+- set new defaultValue
+PASS ta.selectionStart is 9
+PASS ta.selectionEnd is 9
+- set same defaultValue
+PASS ta.selectionStart is 9
+PASS ta.selectionEnd is 9
+- append a text node
+PASS ta.selectionStart is 12
+PASS ta.selectionEnd is 12
+- append a empty text node
+PASS ta.selectionStart is 12
+PASS ta.selectionEnd is 12
PASS successfullyParsed is true
TEST COMPLETE
« 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