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

Unified Diff: LayoutTests/fast/forms/textarea-arrow-navigation.html

Issue 258063005: Blink does not respect input.selectionStart and input.selectionEnd for some cases (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: New patch fixing existing bug Created 6 years, 7 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-arrow-navigation.html
diff --git a/LayoutTests/fast/forms/textarea-arrow-navigation.html b/LayoutTests/fast/forms/textarea-arrow-navigation.html
index eeff6c22c41f5ccfb9e6d35e1ed37f87a11102f4..a9da8439aa9aea74a9b444c8f861a80fdf36adb8 100644
--- a/LayoutTests/fast/forms/textarea-arrow-navigation.html
+++ b/LayoutTests/fast/forms/textarea-arrow-navigation.html
@@ -23,7 +23,11 @@ function runTest()
// set the cursor several characters into the first line of the text area so
// that when you go down by a line, the cursor will be at the end of the
// numbered lines:
- textarea.setSelectionRange(5, 5);
+ var startX = textarea.offsetLeft + 30;
tkent 2014/06/01 23:40:55 Ditto.
harpreet.sk 2014/07/02 10:13:05 Done.
+ var startY = textarea.offsetTop + 4;
+ eventSender.mouseMoveTo(startX,startY);
+ eventSender.mouseDown();
+ eventSender.mouseUp();
for (var i = 0; i < 10; i++) {
// press the 'down arrow' a bunch of times to try to get to the end of the text area
eventSender.keyDown("downArrow");

Powered by Google App Engine
This is Rietveld 408576698