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

Unified Diff: LayoutTests/fast/forms/suggested-value.html

Issue 138433002: Add Autofill preview support for <select> input fields (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Initialize m_suggestedIndex in constructor Created 6 years, 9 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
« no previous file with comments | « no previous file | LayoutTests/fast/forms/suggested-value-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/forms/suggested-value.html
diff --git a/LayoutTests/fast/forms/suggested-value.html b/LayoutTests/fast/forms/suggested-value.html
index c9bc84a92a4e469e58784618e625f8a0c422eb96..2c89a324816b561491a877b64440bb62736b4634 100644
--- a/LayoutTests/fast/forms/suggested-value.html
+++ b/LayoutTests/fast/forms/suggested-value.html
@@ -4,7 +4,7 @@
<p id="description">This test setting suggested values on an input element
and a textarea element. The dump below should have the "suggested value"
instead of "initial value".</p>
-<pre><input id="test" type="text" value="initial value"><input id="month" type="month"><textarea id="textarea"></textarea></pre>
+<pre><input id="test" type="text" value="initial value"><input id="month" type="month"><textarea id="textarea"></textarea><select id="select"><option>CA</option><option>TX</option></select></pre>
<script src="../../resources/dump-as-markup.js"></script>
<script>
@@ -12,6 +12,8 @@ var input = document.getElementById('test');
var month = document.getElementById('month');
var textarea = document.getElementById('textarea');
textarea.value = "initial value";
+var select = document.getElementById('select');
+select.selectedIndex = -1;
var result = document.getElementById('result');
if (!window.internals)
testFailed('This test requires internals object');
@@ -22,6 +24,7 @@ else {
internals.setSuggestedValue(input, 'suggested value');
internals.setSuggestedValue(month, '2014-01');
internals.setSuggestedValue(textarea, 'suggested value');
+ internals.setSuggestedValue(select, 'TX');
Markup.description(document.getElementById('description').textContent)
@@ -34,7 +37,9 @@ else {
addTextResult('internals.suggestedValue(month)');
addTextResult('textarea.value');
addTextResult('internals.suggestedValue(textarea)');
-
+ addTextResult('select.value');
+ addTextResult('internals.suggestedValue(select)');
+
Markup.dump(input.parentNode);
}
« no previous file with comments | « no previous file | LayoutTests/fast/forms/suggested-value-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698