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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/stay-in-textarea.html

Issue 2270663002: Selection API of INPUT/TEXTAREA should not update FrameSelection without focusing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjust more tests Created 4 years, 4 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: third_party/WebKit/LayoutTests/editing/selection/stay-in-textarea.html
diff --git a/third_party/WebKit/LayoutTests/editing/selection/stay-in-textarea.html b/third_party/WebKit/LayoutTests/editing/selection/stay-in-textarea.html
index 3d1b0008f9e73d889fbb1d2efe43fdf9273bd48f..1c89fb0bc2c7fcba013ebdd4f46a2a202fd89c52 100644
--- a/third_party/WebKit/LayoutTests/editing/selection/stay-in-textarea.html
+++ b/third_party/WebKit/LayoutTests/editing/selection/stay-in-textarea.html
@@ -15,6 +15,7 @@ var before = document.getElementById("before");
var after = document.getElementById("after");
var textarea = document.getElementById("textarea");
+textarea.focus();
textarea.setSelectionRange(0, 2);
var textareaSelection = internals.youngestShadowRoot(textarea).getSelection();
var initialTextareaFocusNode = textareaSelection.focusNode;

Powered by Google App Engine
This is Rietveld 408576698