| 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 14 matching lines...) Expand all Loading... |
| 25 setDateTimeFormat("'Week'ww yyyy"); | 25 setDateTimeFormat("'Week'ww yyyy"); |
| 26 shouldBeEqualToString('getUserAgentShadowTextContent(input)', 'Week09 1999'); | 26 shouldBeEqualToString('getUserAgentShadowTextContent(input)', 'Week09 1999'); |
| 27 | 27 |
| 28 debug("Invalid format, fallback to yyyy-'W'ww"); | 28 debug("Invalid format, fallback to yyyy-'W'ww"); |
| 29 setDateTimeFormat('ww'); | 29 setDateTimeFormat('ww'); |
| 30 shouldBeEqualToString('getUserAgentShadowTextContent(input)', '1999-W09'); | 30 shouldBeEqualToString('getUserAgentShadowTextContent(input)', '1999-W09'); |
| 31 setDateTimeFormat('yyyy'); | 31 setDateTimeFormat('yyyy'); |
| 32 shouldBeEqualToString('getUserAgentShadowTextContent(input)', '1999-W09'); | 32 shouldBeEqualToString('getUserAgentShadowTextContent(input)', '1999-W09'); |
| 33 | 33 |
| 34 </script> | 34 </script> |
| 35 <script src="../../js/resources/js-test-post.js"></script> | |
| 36 </body> | 35 </body> |
| 37 </html> | 36 </html> |
| OLD | NEW |