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

Unified Diff: third_party/WebKit/LayoutTests/editing/pasteboard/drag-drop-copy-text.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/pasteboard/drag-drop-copy-text.html
diff --git a/third_party/WebKit/LayoutTests/editing/pasteboard/drag-drop-copy-text.html b/third_party/WebKit/LayoutTests/editing/pasteboard/drag-drop-copy-text.html
index d1c119247cb9beb5b2b6cdd8482f351cf3403de3..6d80b33a87b1741c4d2ab05cc600c84762376223 100644
--- a/third_party/WebKit/LayoutTests/editing/pasteboard/drag-drop-copy-text.html
+++ b/third_party/WebKit/LayoutTests/editing/pasteboard/drag-drop-copy-text.html
@@ -8,6 +8,7 @@ description("This tests that text is copied (rather than moved) when the copy ke
if (window.testRunner) {
// Drag a word in the textarea
var textarea = document.getElementById("textarea");
+ textarea.focus();
textarea.setSelectionRange(0, 5);
x = textarea.offsetLeft + 10;
y = textarea.offsetTop + textarea.offsetHeight / 2;

Powered by Google App Engine
This is Rietveld 408576698