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=datetime-local.'); | 10 description('Check stepUp() and stepDown() behavior for type=datetime-local.'); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 shouldBeEqualToString('stepUp("2010-02-10T20:13", null, null)', '2010-02-10T20:1
4'); | 51 shouldBeEqualToString('stepUp("2010-02-10T20:13", null, null)', '2010-02-10T20:1
4'); |
52 shouldBeEqualToString('stepDown("2010-02-10T20:13", null, null)', '2010-02-10T20
:12'); | 52 shouldBeEqualToString('stepDown("2010-02-10T20:13", null, null)', '2010-02-10T20
:12'); |
53 shouldBeEqualToString('stepUp("2010-02-10T20:13", null, null, 10)', '2010-02-10T
20:23'); | 53 shouldBeEqualToString('stepUp("2010-02-10T20:13", null, null, 10)', '2010-02-10T
20:23'); |
54 shouldBeEqualToString('stepDown("2010-02-10T20:13", null, null, 11)', '2010-02-1
0T20:02'); | 54 shouldBeEqualToString('stepDown("2010-02-10T20:13", null, null, 11)', '2010-02-1
0T20:02'); |
55 shouldBeEqualToString('stepUp("1970-01-01T20:13", "4", null, 2)', '1970-01-01T20
:13:08'); | 55 shouldBeEqualToString('stepUp("1970-01-01T20:13", "4", null, 2)', '1970-01-01T20
:13:08'); |
56 shouldBeEqualToString('stepDown("1970-01-01T20:13", "4", null, 3)', '1970-01-01T
20:12:48'); | 56 shouldBeEqualToString('stepDown("1970-01-01T20:13", "4", null, 3)', '1970-01-01T
20:12:48'); |
57 debug('Step=any'); | 57 debug('Step=any'); |
58 shouldThrow('stepUp("2010-02-10T20:13", "any", null)'); | 58 shouldThrow('stepUp("2010-02-10T20:13", "any", null)'); |
59 shouldThrow('stepDown("2010-02-10T20:13", "any", null)'); | 59 shouldThrow('stepDown("2010-02-10T20:13", "any", null)'); |
60 debug('Overflow/underflow'); | 60 debug('Overflow/underflow'); |
61 shouldBeEqualToString('stepUp("2010-02-10T20:13", "3.40282346e+38", null)', '275
760-09-13T00:00:00'); | 61 shouldBeEqualToString('stepUp("2010-02-10T20:13", "3.40282346e+38", null)', '201
0-02-10T20:13'); |
62 shouldBeEqualToString('stepDown("2010-02-10T20:13", "3.40282346e+38", null)', '1
970-01-01T00:00:00'); | 62 shouldBeEqualToString('stepDown("2010-02-10T20:13", "3.40282346e+38", null)', '2
010-02-10T20:13'); |
63 shouldBeEqualToString('stepUp("2010-02-10T20:13", "1", "2010-02-10T20:13")', '20
10-02-10T20:13:00'); | 63 shouldBeEqualToString('stepUp("2010-02-10T20:13", "1", "2010-02-10T20:13")', '20
10-02-10T20:13:00'); |
64 shouldBeEqualToString('stepDown("2010-02-10T20:13", "1", "2010-02-10T20:13")', '
2010-02-10T20:13:00'); | 64 shouldBeEqualToString('stepDown("2010-02-10T20:13", "1", "2010-02-10T20:13")', '
2010-02-10T20:13:00'); |
65 </script> | 65 </script> |
66 </body> | 66 </body> |
67 </html> | 67 </html> |
OLD | NEW |