OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../../fast/js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description('Test for validationMessage IDL attribute for <input type=date>')
; | 8 description('Test for validationMessage IDL attribute for <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 23 matching lines...) Expand all Loading... |
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", "", "", "123")', 'Please enter a val
id value. The two nearest valid values are 07/07/1982 and 11/07/1982.'); |
42 | 42 |
43 </script> | 43 </script> |
44 <script src="../../../fast/js/resources/js-test-post.js"></script> | |
45 </body> | 44 </body> |
46 </html> | 45 </html> |
OLD | NEW |