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 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <p id="description"></p> | 7 <p id="description"></p> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 <script> | 9 <script> |
10 description('Tests for .valueAsDate with <input type=week>.'); | 10 description('Tests for .valueAsDate with <input type=week>.'); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 shouldBe('setValueAsDateAndGetValue(2010, 0, 10)', '"2010-W01"'); | 58 shouldBe('setValueAsDateAndGetValue(2010, 0, 10)', '"2010-W01"'); |
59 shouldBe('setValueAsDateAndGetValue(2010, 0, 11)', '"2010-W02"'); | 59 shouldBe('setValueAsDateAndGetValue(2010, 0, 11)', '"2010-W02"'); |
60 shouldBe('setValueAsDateAndGetValue(2010, 0, 17)', '"2010-W02"'); | 60 shouldBe('setValueAsDateAndGetValue(2010, 0, 17)', '"2010-W02"'); |
61 shouldBe('setValueAsDateAndGetValue(2010, 11, 31)', '"2010-W52"'); | 61 shouldBe('setValueAsDateAndGetValue(2010, 11, 31)', '"2010-W52"'); |
62 | 62 |
63 debug('Around the minimum value:'); | 63 debug('Around the minimum value:'); |
64 // Gregorian calendar started in 1582. We don't support that year. | 64 // Gregorian calendar started in 1582. We don't support that year. |
65 shouldBe('setValueAsDateAndGetValue(0, 11, 31)', '""'); | 65 shouldBe('setValueAsDateAndGetValue(0, 11, 31)', '""'); |
66 shouldBe('setValueAsDateAndGetValue(0, 0, 1)', '""'); | 66 shouldBe('setValueAsDateAndGetValue(0, 0, 1)', '""'); |
67 </script> | 67 </script> |
68 <script src="../../js/resources/js-test-post.js"></script> | |
69 </body> | 68 </body> |
70 </html> | 69 </html> |
OLD | NEW |