OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
5 <script src="../resources/common.js"></script> | 5 <script src="../resources/common.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <script> | 8 <script> |
9 description('Checks incomplete datetime formats are rejected.'); | 9 description('Checks incomplete datetime formats are rejected.'); |
10 | 10 |
11 var input = document.createElement('input'); | 11 var input = document.createElement('input'); |
12 input.type = 'date'; | 12 input.type = 'date'; |
13 document.body.appendChild(input); | 13 document.body.appendChild(input); |
14 | 14 |
(...skipping 14 matching lines...) Expand all Loading... |
29 setDateTimeFormat('yyyy-MM'); | 29 setDateTimeFormat('yyyy-MM'); |
30 shouldBeEqualToString('getUserAgentShadowTextContent(input)', '1999-07-31'); | 30 shouldBeEqualToString('getUserAgentShadowTextContent(input)', '1999-07-31'); |
31 setDateTimeFormat('MM/dd'); | 31 setDateTimeFormat('MM/dd'); |
32 shouldBeEqualToString('getUserAgentShadowTextContent(input)', '1999-07-31'); | 32 shouldBeEqualToString('getUserAgentShadowTextContent(input)', '1999-07-31'); |
33 setDateTimeFormat('dd-yyyy'); | 33 setDateTimeFormat('dd-yyyy'); |
34 shouldBeEqualToString('getUserAgentShadowTextContent(input)', '1999-07-31'); | 34 shouldBeEqualToString('getUserAgentShadowTextContent(input)', '1999-07-31'); |
35 | 35 |
36 </script> | 36 </script> |
37 </body> | 37 </body> |
38 </html> | 38 </html> |
OLD | NEW |