| OLD | NEW |
| 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 <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 20 matching lines...) Expand all Loading... |
| 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> |
| OLD | NEW |