| 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="../../js/resources/js-test-pre.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 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 debug("Invalid format, fallback to yyyy-MM-dd"); | 28 debug("Invalid format, fallback to yyyy-MM-dd"); |
| 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 <script src="../../js/resources/js-test-post.js"></script> | |
| 38 </body> | 37 </body> |
| 39 </html> | 38 </html> |
| OLD | NEW |