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 <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('Check stepUp() and stepDown() behavior for type=date.'); | 10 description('Check stepUp() and stepDown() behavior for type=date.'); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 shouldBeEqualToString('stepUp("2010-02-10", null, null)', '2010-02-11'); | 52 shouldBeEqualToString('stepUp("2010-02-10", null, null)', '2010-02-11'); |
53 shouldBeEqualToString('stepDown("2010-02-10", null, null)', '2010-02-09'); | 53 shouldBeEqualToString('stepDown("2010-02-10", null, null)', '2010-02-09'); |
54 shouldBeEqualToString('stepUp("2010-02-10", null, null, 10)', '2010-02-20'); | 54 shouldBeEqualToString('stepUp("2010-02-10", null, null, 10)', '2010-02-20'); |
55 shouldBeEqualToString('stepDown("2010-02-10", null, null, 11)', '2010-01-30'); | 55 shouldBeEqualToString('stepDown("2010-02-10", null, null, 11)', '2010-01-30'); |
56 shouldBeEqualToString('stepUp("1970-01-01", "4", null, 2)', '1970-01-09'); | 56 shouldBeEqualToString('stepUp("1970-01-01", "4", null, 2)', '1970-01-09'); |
57 shouldBeEqualToString('stepDown("1970-01-01", "4", null, 3)', '1969-12-20'); | 57 shouldBeEqualToString('stepDown("1970-01-01", "4", null, 3)', '1969-12-20'); |
58 debug('Step=any'); | 58 debug('Step=any'); |
59 shouldThrow('stepUp("2010-02-10", "any", null)'); | 59 shouldThrow('stepUp("2010-02-10", "any", null)'); |
60 shouldThrow('stepDown("2010-02-10", "any", null)'); | 60 shouldThrow('stepDown("2010-02-10", "any", null)'); |
61 debug('Overflow/underflow'); | 61 debug('Overflow/underflow'); |
62 shouldBeEqualToString('stepUp("2010-02-10", "3.40282346e+38", null)', '275760-09
-13'); | 62 shouldBeEqualToString('stepUp("2010-02-10", "3.40282346e+38", null)', '2010-02-1
0'); |
63 shouldBeEqualToString('stepDown("2010-02-10", "3.40282346e+38", null)', '1970-01
-01'); | 63 shouldBeEqualToString('stepDown("2010-02-10", "3.40282346e+38", null)', '2010-02
-10'); |
64 shouldBeEqualToString('stepUp("2010-02-10", "1", "2010-02-10")', '2010-02-10'); | 64 shouldBeEqualToString('stepUp("2010-02-10", "1", "2010-02-10")', '2010-02-10'); |
65 shouldBeEqualToString('stepDown("2010-02-10", "1", "2010-02-10")', '2010-02-10')
; | 65 shouldBeEqualToString('stepDown("2010-02-10", "1", "2010-02-10")', '2010-02-10')
; |
66 | 66 |
67 debug(''); | 67 debug(''); |
68 </script> | 68 </script> |
69 </body> | 69 </body> |
70 </html> | 70 </html> |
OLD | NEW |