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

Unified Diff: LayoutTests/editing/input/reveal-caret-of-multiline-input.html

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/editing/input/reveal-caret-of-multiline-input.html
diff --git a/LayoutTests/editing/input/reveal-caret-of-multiline-input.html b/LayoutTests/editing/input/reveal-caret-of-multiline-input.html
index a6199c5f7b2b4be4c67d5bd2244e53544ec742d9..d5e5ba2367336723cee18c38bf2da286a0e98e50 100644
--- a/LayoutTests/editing/input/reveal-caret-of-multiline-input.html
+++ b/LayoutTests/editing/input/reveal-caret-of-multiline-input.html
@@ -9,6 +9,7 @@
var textArea = document.getElementById("textarea");
textArea.textContent = generateNumbers(0, 30, 2, "\n");
+textArea.setSelectionRange(0, 0);
textArea.focus();
textArea.selectionStart = 36;
if (window.eventSender)

Powered by Google App Engine
This is Rietveld 408576698