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

Side by Side Diff: LayoutTests/fast/forms/date/input-date-validation-message.html

Issue 83413002: Derive the step base for an input element as (now) specified. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Perform step base derivation via InputType::findStepBase() instead Created 7 years 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 description('Test for validationMessage IDL attribute for &lt;input type=date>') ; 8 description('Test for validationMessage IDL attribute for &lt;input type=date>') ;
9 var parent = document.createElement('div'); 9 var parent = document.createElement('div');
10 document.body.appendChild(parent); 10 document.body.appendChild(parent);
(...skipping 20 matching lines...) Expand all
31 debug('Type mismatch'); 31 debug('Type mismatch');
32 shouldBeEqualToString('testIt("foo", "", "")', ''); 32 shouldBeEqualToString('testIt("foo", "", "")', '');
33 33
34 debug('Range overflow') 34 debug('Range overflow')
35 shouldBeEqualToString('testIt("1982-11-02", "", "1970-12-31")', 'Value must be 1 2/31/1970 or earlier.'); 35 shouldBeEqualToString('testIt("1982-11-02", "", "1970-12-31")', 'Value must be 1 2/31/1970 or earlier.');
36 36
37 debug('Range underflow') 37 debug('Range underflow')
38 shouldBeEqualToString('testIt("1982-11-02", "1990-05-25", "1990-12-24")', 'Value must be 05/25/1990 or later.'); 38 shouldBeEqualToString('testIt("1982-11-02", "1990-05-25", "1990-12-24")', 'Value must be 05/25/1990 or later.');
39 39
40 debug('Step mismatch') 40 debug('Step mismatch')
41 shouldBeEqualToString('testIt("1982-11-02", "", "", "123")', 'Please enter a val id value. The two nearest valid values are 07/07/1982 and 11/07/1982.'); 41 shouldBeEqualToString('testIt("1982-11-02", "1982-01-01", "", "123")', 'Please e nter a valid value. The two nearest valid values are 09/04/1982 and 01/05/1983.' );
42 42
43 </script> 43 </script>
44 </body> 44 </body>
45 </html> 45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698