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

Unified Diff: LayoutTests/fast/forms/setrangetext-within-events-expected.txt

Issue 1049233003: Keep the selection of the text field when changed by JS. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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/setrangetext-within-events-expected.txt
diff --git a/LayoutTests/fast/forms/setrangetext-within-events-expected.txt b/LayoutTests/fast/forms/setrangetext-within-events-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..077b6ab0ef83bd593ca30b929bd5e9a93a7fb65c
--- /dev/null
+++ b/LayoutTests/fast/forms/setrangetext-within-events-expected.txt
@@ -0,0 +1,33 @@
+This tests the selection of the text field after setSelectionRange is called
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+focus test :
+PASS textfield.selectionStart is 0
+PASS textfield.selectionEnd is 5
+the selection should be cleared
+PASS textfield.selectionStart is 0
+PASS textfield.selectionEnd is 0
+mousedown test :
+PASS textfield.selectionStart is 0
+PASS textfield.selectionEnd is 0
+the selection should be cleared
+PASS textfield.selectionStart is 0
+PASS textfield.selectionEnd is 0
+mouseup test :
+PASS textfield.selectionStart is 0
+PASS textfield.selectionEnd is 5
+the selection should be cleared
+PASS textfield.selectionStart is 0
+PASS textfield.selectionEnd is 0
+click test :
+PASS textfield.selectionStart is 0
+PASS textfield.selectionEnd is 5
+the selection should be cleared
+PASS textfield.selectionStart is 0
+PASS textfield.selectionEnd is 0
+

Powered by Google App Engine
This is Rietveld 408576698