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

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: Addressing changes asked in previous patch 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/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..ba97ade5ab822f0c17cb51df3dfec5c0a32cd2eb 100644
--- a/LayoutTests/fast/forms/paste-into-textarea.html
+++ b/LayoutTests/fast/forms/paste-into-textarea.html
@@ -4,6 +4,7 @@
if (window.testRunner)
testRunner.dumpAsText();
var e = document.getElementById("test");
+e.focus();
e.setSelectionRange(1, 1);
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")
« no previous file with comments | « LayoutTests/fast/forms/input-setvalue-selection.html ('k') | LayoutTests/fast/forms/textarea-arrow-navigation.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698