OLD | NEW |
1 Test if step limits available dates in calendar picker. | 1 Test if step limits available dates in calendar picker. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 Test Day constructor | 6 Test Day constructor |
7 PASS new pw.Day(2000, 1, 2).year is 2000 | 7 PASS new pw.Day(2000, 1, 2).year is 2000 |
8 PASS new pw.Day(2000, 1, 2).month is 1 | 8 PASS new pw.Day(2000, 1, 2).month is 1 |
9 PASS new pw.Day(2000, 1, 2).date is 2 | 9 PASS new pw.Day(2000, 1, 2).date is 2 |
10 PASS new pw.Day(2000, -1, 2).year is 1999 | 10 PASS new pw.Day(2000, -1, 2).year is 1999 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 PASS new pw.Day(20000, 2, 1).valueOf() is 568977004800000 | 56 PASS new pw.Day(20000, 2, 1).valueOf() is 568977004800000 |
57 Test Day.toString | 57 Test Day.toString |
58 PASS new pw.Day(2000, 2, 1).toString() is "2000-03-01" | 58 PASS new pw.Day(2000, 2, 1).toString() is "2000-03-01" |
59 PASS new pw.Day(1, 2, 1).toString() is "0001-03-01" | 59 PASS new pw.Day(1, 2, 1).toString() is "0001-03-01" |
60 PASS new pw.Day(20000, 2, 1).toString() is "20000-03-01" | 60 PASS new pw.Day(20000, 2, 1).toString() is "20000-03-01" |
61 Test Day.parse | 61 Test Day.parse |
62 PASS pw.Day.parse("2000-02-02").toString() is "2000-02-02" | 62 PASS pw.Day.parse("2000-02-02").toString() is "2000-02-02" |
63 PASS pw.Day.parse("1999-02-02").toString() is "1999-02-02" | 63 PASS pw.Day.parse("1999-02-02").toString() is "1999-02-02" |
64 PASS pw.Day.parse("2000-01-02").toString() is "2000-01-02" | 64 PASS pw.Day.parse("2000-01-02").toString() is "2000-01-02" |
65 PASS pw.Day.parse("2000-02-01").toString() is "2000-02-01" | 65 PASS pw.Day.parse("2000-02-01").toString() is "2000-02-01" |
| 66 PASS pw.Day.parse("0001-01-01").toString() is "0001-01-01" |
66 PASS pw.Day.parse("02000-02-02").toString() is "2000-02-02" | 67 PASS pw.Day.parse("02000-02-02").toString() is "2000-02-02" |
67 PASS pw.Day.parse("2000-002-02").toString() is "2000-02-02" | 68 PASS pw.Day.parse("2000-002-02").toString() is "2000-02-02" |
68 PASS pw.Day.parse("2000-02-002").toString() is "2000-02-02" | 69 PASS pw.Day.parse("2000-02-002").toString() is "2000-02-02" |
69 PASS pw.Day.parse("2000-2-02").toString() is "2000-02-02" | 70 PASS pw.Day.parse("2000-2-02").toString() is "2000-02-02" |
70 PASS pw.Day.parse("2000-02-2").toString() is "2000-02-02" | 71 PASS pw.Day.parse("2000-02-2").toString() is "2000-02-02" |
71 PASS pw.Day.parse("1-02-02").toString() is "0001-02-02" | 72 PASS pw.Day.parse("1-02-02").toString() is "0001-02-02" |
72 PASS pw.Day.parse("2000-02") is null | 73 PASS pw.Day.parse("2000-02") is null |
73 PASS pw.Day.parse("2000-W02") is null | 74 PASS pw.Day.parse("2000-W02") is null |
74 PASS pw.Day.parse("x") is null | 75 PASS pw.Day.parse("x") is null |
75 PASS pw.Day.parse("") is null | 76 PASS pw.Day.parse("") is null |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 PASS pw.Month.parse("2000-2").toString() is "2000-02" | 225 PASS pw.Month.parse("2000-2").toString() is "2000-02" |
225 PASS pw.Month.parse("1-02").toString() is "0001-02" | 226 PASS pw.Month.parse("1-02").toString() is "0001-02" |
226 PASS pw.Month.parse("2000-02-03") is null | 227 PASS pw.Month.parse("2000-02-03") is null |
227 PASS pw.Month.parse("2000-W02") is null | 228 PASS pw.Month.parse("2000-W02") is null |
228 PASS pw.Month.parse("x") is null | 229 PASS pw.Month.parse("x") is null |
229 PASS pw.Month.parse("") is null | 230 PASS pw.Month.parse("") is null |
230 PASS successfullyParsed is true | 231 PASS successfullyParsed is true |
231 | 232 |
232 TEST COMPLETE | 233 TEST COMPLETE |
233 | 234 |
OLD | NEW |