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

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

Issue 130213005: Add autofill preview support for <month> input fields (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase TestExpectations file Created 6 years, 10 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 | « LayoutTests/TestExpectations ('k') | 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 988b515cde791f310871684a764910df34dad9a3..c9bc84a92a4e469e58784618e625f8a0c422eb96 100644
--- a/LayoutTests/fast/forms/suggested-value.html
+++ b/LayoutTests/fast/forms/suggested-value.html
@@ -4,11 +4,12 @@
<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"><textarea id="textarea"></textarea></pre>
+<pre><input id="test" type="text" value="initial value"><input id="month" type="month"><textarea id="textarea"></textarea></pre>
<script src="../../resources/dump-as-markup.js"></script>
<script>
var input = document.getElementById('test');
+var month = document.getElementById('month');
var textarea = document.getElementById('textarea');
textarea.value = "initial value";
var result = document.getElementById('result');
@@ -19,6 +20,7 @@ else {
input.selectionStart = input.selectionEnd = 0;
internals.setSuggestedValue(input, 'suggested value');
+ internals.setSuggestedValue(month, '2014-01');
internals.setSuggestedValue(textarea, 'suggested value');
Markup.description(document.getElementById('description').textContent)
@@ -28,6 +30,8 @@ else {
addTextResult('internals.suggestedValue(input)');
addTextResult('input.selectionStart');
addTextResult('input.selectionEnd');
+ addTextResult('month.value');
+ addTextResult('internals.suggestedValue(month)');
addTextResult('textarea.value');
addTextResult('internals.suggestedValue(textarea)');
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/forms/suggested-value-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698