1 This test case checks that months greater than 11 are handled correctly when passed to the Date constructor and the Date.UTC function. The ECMA 262 specification says that months > 11 should be treated as month % 12 and the year as year + floor(month / 12).
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS d.getFullYear() + "-" + d.getMonth(); is "2005-0"
7 PASS d.getFullYear() + "-" + d.getMonth(); is "2005-1"
8 PASS d.getFullYear() + "-" + d.getMonth(); is "2005-2"
9 PASS d.getFullYear() + "-" + d.getMonth(); is "2005-3"
10 PASS d.getFullYear() + "-" + d.getMonth(); is "2005-4"
11 PASS d.getFullYear() + "-" + d.getMonth(); is "2005-5"
12 PASS d.getFullYear() + "-" + d.getMonth(); is "2005-6"
13 PASS d.getFullYear() + "-" + d.getMonth(); is "2005-7"
14 PASS d.getFullYear() + "-" + d.getMonth(); is "2005-8"
15 PASS d.getFullYear() + "-" + d.getMonth(); is "2005-9"
16 PASS d.getFullYear() + "-" + d.getMonth(); is "2005-10"
17 PASS d.getFullYear() + "-" + d.getMonth(); is "2005-11"
18 PASS d.getFullYear() + "-" + d.getMonth(); is "2006-0"
19 PASS d.getFullYear() + "-" + d.getMonth(); is "2006-1"
20 PASS d.getFullYear() + "-" + d.getMonth(); is "2006-2"
21 PASS d.getFullYear() + "-" + d.getMonth(); is "2006-3"
22 PASS d.getFullYear() + "-" + d.getMonth(); is "2006-4"
23 PASS d.getFullYear() + "-" + d.getMonth(); is "2006-5"
24 PASS d.getFullYear() + "-" + d.getMonth(); is "2006-6"
25 PASS d.getFullYear() + "-" + d.getMonth(); is "2006-7"
26 PASS d.getFullYear() + "-" + d.getMonth(); is "2006-8"
27 PASS d.getFullYear() + "-" + d.getMonth(); is "2006-9"
28 PASS d.getFullYear() + "-" + d.getMonth(); is "2006-10"
29 PASS d.getFullYear() + "-" + d.getMonth(); is "2006-11"
30 PASS d.getFullYear() + "-" + d.getMonth(); is "2007-0"
31 PASS d.getFullYear() + "-" + d.getMonth(); is "2007-1"
32 PASS d.getFullYear() + "-" + d.getMonth(); is "2007-2"
33 PASS d.getFullYear() + "-" + d.getMonth(); is "2007-3"
34 PASS d.getFullYear() + "-" + d.getMonth(); is "2007-4"
35 PASS d.getFullYear() + "-" + d.getMonth(); is "2007-5"
36 PASS d.getFullYear() + "-" + d.getMonth(); is "2007-6"
37 PASS d.getFullYear() + "-" + d.getMonth(); is "2007-7"
38 PASS d.getFullYear() + "-" + d.getMonth(); is "2007-8"
39 PASS d.getFullYear() + "-" + d.getMonth(); is "2007-9"
40 PASS d.getFullYear() + "-" + d.getMonth(); is "2007-10"
41 PASS d.getFullYear() + "-" + d.getMonth(); is "2007-11"
42 PASS Date.UTC(2005, 0, 1) is 1104537600000
43 PASS Date.UTC(2005, 1, 1) is 1107216000000
44 PASS Date.UTC(2005, 2, 1) is 1109635200000
45 PASS Date.UTC(2005, 3, 1) is 1112313600000
46 PASS Date.UTC(2005, 4, 1) is 1114905600000
47 PASS Date.UTC(2005, 5, 1) is 1117584000000
48 PASS Date.UTC(2005, 6, 1) is 1120176000000
49 PASS Date.UTC(2005, 7, 1) is 1122854400000
50 PASS Date.UTC(2005, 8, 1) is 1125532800000
51 PASS Date.UTC(2005, 9, 1) is 1128124800000
52 PASS Date.UTC(2005, 10, 1) is 1130803200000
53 PASS Date.UTC(2005, 11, 1) is 1133395200000
54 PASS Date.UTC(2005, 12, 1) is 1136073600000
55 PASS Date.UTC(2005, 13, 1) is 1138752000000
56 PASS Date.UTC(2005, 14, 1) is 1141171200000
57 PASS Date.UTC(2005, 15, 1) is 1143849600000
58 PASS Date.UTC(2005, 16, 1) is 1146441600000
59 PASS Date.UTC(2005, 17, 1) is 1149120000000
60 PASS Date.UTC(2005, 18, 1) is 1151712000000
61 PASS Date.UTC(2005, 19, 1) is 1154390400000
62 PASS Date.UTC(2005, 20, 1) is 1157068800000
63 PASS Date.UTC(2005, 21, 1) is 1159660800000
64 PASS Date.UTC(2005, 22, 1) is 1162339200000
65 PASS Date.UTC(2005, 23, 1) is 1164931200000
66 PASS Date.UTC(2005, 24, 1) is 1167609600000
67 PASS Date.UTC(2005, 25, 1) is 1170288000000
68 PASS Date.UTC(2005, 26, 1) is 1172707200000
69 PASS Date.UTC(2005, 27, 1) is 1175385600000
70 PASS Date.UTC(2005, 28, 1) is 1177977600000
71 PASS Date.UTC(2005, 29, 1) is 1180656000000
72 PASS Date.UTC(2005, 30, 1) is 1183248000000
73 PASS Date.UTC(2005, 31, 1) is 1185926400000
74 PASS Date.UTC(2005, 32, 1) is 1188604800000
75 PASS Date.UTC(2005, 33, 1) is 1191196800000
76 PASS Date.UTC(2005, 34, 1) is 1193875200000
77 PASS Date.UTC(2005, 35, 1) is 1196467200000
78 PASS successfullyParsed is true