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

Unified Diff: LayoutTests/fast/spatial-navigation/snav-textarea.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/spatial-navigation/snav-textarea.html
diff --git a/LayoutTests/fast/spatial-navigation/snav-textarea.html b/LayoutTests/fast/spatial-navigation/snav-textarea.html
index 61c6f9096cf6bd879e5aeee52aaff5108d5c07ea..07c4977973e1c8a5ee459853c77d83506f52f767 100644
--- a/LayoutTests/fast/spatial-navigation/snav-textarea.html
+++ b/LayoutTests/fast/spatial-navigation/snav-textarea.html
@@ -65,7 +65,8 @@
textarea.value = "abc\nd";
// starting the test itself: get to a known place.
- document.getElementById("start").focus();
+ textarea.focus();
+ textarea.setSelectionRange(0, 0);
initTest(resultMap, testCompleted);
}

Powered by Google App Engine
This is Rietveld 408576698