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=week.'); | 10 description('Check stepUp() and stepDown() behavior for type=week.'); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 shouldBeEqualToString('stepUp("2010-W02", null, null)', '2010-W03'); | 51 shouldBeEqualToString('stepUp("2010-W02", null, null)', '2010-W03'); |
52 shouldBeEqualToString('stepDown("2010-W02", null, null)', '2010-W01'); | 52 shouldBeEqualToString('stepDown("2010-W02", null, null)', '2010-W01'); |
53 shouldBeEqualToString('stepUp("2010-W02", null, null, 10)', '2010-W12'); | 53 shouldBeEqualToString('stepUp("2010-W02", null, null, 10)', '2010-W12'); |
54 shouldBeEqualToString('stepDown("2010-W02", null, null, 11)', '2009-W44'); | 54 shouldBeEqualToString('stepDown("2010-W02", null, null, 11)', '2009-W44'); |
55 shouldBeEqualToString('stepUp("1970-W01", "4", null, 2)', '1970-W09'); | 55 shouldBeEqualToString('stepUp("1970-W01", "4", null, 2)', '1970-W09'); |
56 shouldBeEqualToString('stepDown("1970-W01", "4", null, 3)', '1969-W41'); | 56 shouldBeEqualToString('stepDown("1970-W01", "4", null, 3)', '1969-W41'); |
57 debug('Step=any'); | 57 debug('Step=any'); |
58 shouldThrow('stepUp("2010-W02", "any", null)'); | 58 shouldThrow('stepUp("2010-W02", "any", null)'); |
59 shouldThrow('stepDown("2010-W02", "any", null)'); | 59 shouldThrow('stepDown("2010-W02", "any", null)'); |
60 debug('Overflow/underflow'); | 60 debug('Overflow/underflow'); |
61 shouldBeEqualToString('stepUp("2010-W02", "3.40282346e+38", null)', '275760-W37'
); | 61 shouldBeEqualToString('stepUp("2010-W02", "3.40282346e+38", null)', '2010-W02'); |
62 shouldBeEqualToString('stepDown("2010-W02", "3.40282346e+38", null)', '1970-W01'
); | 62 shouldBeEqualToString('stepDown("2010-W02", "3.40282346e+38", null)', '2010-W02'
); |
63 shouldBeEqualToString('stepUp("2010-W02", "1", "2010-W02")', '2010-W02'); | 63 shouldBeEqualToString('stepUp("2010-W02", "1", "2010-W02")', '2010-W02'); |
64 shouldBeEqualToString('stepDown("2010-W02", "1", "2010-W02")', '2010-W02'); | 64 shouldBeEqualToString('stepDown("2010-W02", "1", "2010-W02")', '2010-W02'); |
65 | 65 |
66 debug(''); | 66 debug(''); |
67 </script> | 67 </script> |
68 </body> | 68 </body> |
69 </html> | 69 </html> |
OLD | NEW |