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

Unified Diff: LayoutTests/fast/forms/paste-into-textarea.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/paste-into-textarea.html
diff --git a/LayoutTests/fast/forms/paste-into-textarea.html b/LayoutTests/fast/forms/paste-into-textarea.html
index a0055ded0b7c2e872c6bea19bd96110281724d45..a2fa32d41e55da6308da2646b35cb26b8bc399a4 100644
--- a/LayoutTests/fast/forms/paste-into-textarea.html
+++ b/LayoutTests/fast/forms/paste-into-textarea.html
@@ -4,7 +4,11 @@
if (window.testRunner)
testRunner.dumpAsText();
var e = document.getElementById("test");
-e.setSelectionRange(1, 1);
+var startX = e.offsetLeft + 10;
tkent 2014/06/01 23:40:55 Ditto.
harpreet.sk 2014/07/02 10:13:05 Done.
+var startY = e.offsetTop + 4;
+eventSender.mouseMoveTo(startX,startY);
+eventSender.mouseDown();
+eventSender.mouseUp();
document.execCommand("InsertHTML", false, "(There should be one 'x' before and after this sentence.)");
if (e.value == "x(There should be one 'x' before and after this sentence.)x")
document.write("<p>Hooray, test succeeded.</p>");

Powered by Google App Engine
This is Rietveld 408576698