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

Unified Diff: LayoutTests/fast/forms/input-appearance-selection.html

Issue 392573002: HTMLTextAreaElement.setSelectionRange should not change focus. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix tests 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/input-appearance-selection.html
diff --git a/LayoutTests/fast/forms/input-appearance-selection.html b/LayoutTests/fast/forms/input-appearance-selection.html
index eeee70554309bceba6c01a1c99e96f9ca2e6b7b2..431bccd526e9cd7707b02424160861b8c5b88a71 100644
--- a/LayoutTests/fast/forms/input-appearance-selection.html
+++ b/LayoutTests/fast/forms/input-appearance-selection.html
@@ -19,6 +19,7 @@ function test () {
function testSelectionRange (testNumber, start, end, expectedStart, expectedEnd, tf, res)
{
+ tf.focus();
tf.setSelectionRange(start, end);
res.innerHTML = res.innerHTML + "<br>Test " + testNumber + ": setSelectionRange(" + start + ", " + end + ")";
if (tf.selectionStart == expectedStart && tf.selectionEnd == expectedEnd)

Powered by Google App Engine
This is Rietveld 408576698