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

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

Issue 222023002: focus() behaviour differs depending on how value is set (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixing selection handling of 'value' HTML attribute by initializing m_cachedSelection{Start,End} wi… Created 6 years, 8 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/focus-selection-input.html
diff --git a/LayoutTests/fast/forms/focus-selection-input.html b/LayoutTests/fast/forms/focus-selection-input.html
index 6836d8ebf7ace9d94ad3dd7d9ef92406842e341c..f06bddfc8e64e2a9355505e83635408e349d39ba 100644
--- a/LayoutTests/fast/forms/focus-selection-input.html
+++ b/LayoutTests/fast/forms/focus-selection-input.html
@@ -142,7 +142,7 @@ test harness, the test runs automatically.</p>
<br>
-6) <label id="sixthLabel" for="sixth" accesskey="u">Hit Ctrl-Option-U (or Alt-U on Windows), the whole phrase "SUCCESS and SUCCESS" should be selected:</label>
+6) <label id="sixthLabel" for="sixth" accesskey="u">Hit Ctrl-Option-U (or Alt-U on Windows), nothing should be selected:</label>
<input type="text" id="sixth" value="SUCCESS and SUCCESS">
<script>
var sixth = document.getElementById("sixth");
@@ -166,7 +166,7 @@ test harness, the test runs automatically.</p>
8) <input type="button" onclick="document.getElementById('eighthLegend').focus()" value="Click this button">
<fieldset>
-<legend id="eighthLegend">, the whole phrase "SUCCESS and SUCCESS" should be selected:</legend>
+<legend id="eighthLegend">, nothing should be selected:</legend>
<input type="text" id="eighth" value="SUCCESS and SUCCESS">
<script>
var eighth = document.getElementById("eighth");
@@ -179,7 +179,7 @@ test harness, the test runs automatically.</p>
9) <fieldset>
-<legend id="eighthLegend" accesskey="i">Hit Ctrl-Option-I (or Alt-I on Windows), the whole phrase "SUCCESS and SUCCESS" should be selected:</legend>
+<legend id="eighthLegend" accesskey="i">Hit Ctrl-Option-I (or Alt-I on Windows), nothing should be selected:</legend>
<input type="text" id="ninth" value="SUCCESS and SUCCESS">
<script>
var ninth = document.getElementById("ninth");

Powered by Google App Engine
This is Rietveld 408576698