Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / forms / calendar-picker / calendar-picker-date-types-expected.txt
1 Test if step limits available dates in calendar picker.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 Test Day constructor
7 PASS new pw.Day(2000, 1, 2).year is 2000
8 PASS new pw.Day(2000, 1, 2).month is 1
9 PASS new pw.Day(2000, 1, 2).date is 2
10 PASS new pw.Day(2000, -1, 2).year is 1999
11 PASS new pw.Day(2000, -1, 2).month is 11
12 PASS new pw.Day(2000, -1, 2).date is 2
13 PASS new pw.Day(2000, 1, -2).year is 2000
14 PASS new pw.Day(2000, 1, -2).month is 0
15 PASS new pw.Day(2000, 1, -2).date is 29
16 PASS new pw.Day(-2000, 1, 2).year is -2000
17 PASS new pw.Day(-2000, 1, 2).month is 1
18 PASS new pw.Day(-2000, 1, 2).date is 2
19 PASS new pw.Day(2000, 1, 33).year is 2000
20 PASS new pw.Day(2000, 1, 33).month is 2
21 PASS new pw.Day(2000, 1, 33).date is 4
22 PASS new pw.Day(200000, 1, 2).year is 200000
23 PASS new pw.Day(200000, 1, 2).month is 1
24 PASS new pw.Day(200000, 1, 2).date is 2
25 Test Day.equals
26 PASS new pw.Day(2000, 1, 2).equals(new pw.Day(2000, 1, 2)) is true
27 PASS new pw.Day(2000, 1, 2).equals(new pw.Day(2000, 2, -27)) is true
28 PASS new pw.Day(2000, 1, 2).equals(new pw.Day(2001, 1, -364)) is true
29 PASS new pw.Day(2000, 1, 2).equals(new pw.Day(2000, 1, 3)) is false
30 PASS new pw.Day(2000, 1, 2).equals(new pw.Day(2000, 2, 2)) is false
31 PASS new pw.Day(2000, 1, 2).equals(new pw.Day(2001, 1, 2)) is false
32 PASS new pw.Day(2000, 1, 2).equals(new pw.Day(2001, 2, 3)) is false
33 Test Day.previous
34 PASS new pw.Day(2000, 2, 1).previous().toString() is "2000-02-29"
35 PASS new pw.Day(2000, 2, 1).previous(1).toString() is "2000-02-29"
36 PASS new pw.Day(2000, 2, 1).previous(2).toString() is "2000-02-28"
37 PASS new pw.Day(2000, 2, 1).previous(3).toString() is "2000-02-27"
38 PASS new pw.Day(2000, 2, 1).previous(30).toString() is "2000-01-31"
39 Test Day.next
40 PASS new pw.Day(2000, 2, 1).next().toString() is "2000-03-02"
41 PASS new pw.Day(2000, 2, 1).next(1).toString() is "2000-03-02"
42 PASS new pw.Day(2000, 2, 1).next(2).toString() is "2000-03-03"
43 PASS new pw.Day(2000, 2, 1).next(3).toString() is "2000-03-04"
44 PASS new pw.Day(2000, 2, 1).next(30).toString() is "2000-03-31"
45 Test Day.firstDay
46 PASS new pw.Day(2000, 2, 1).firstDay().toString() is "2000-03-01"
47 Test Day.middleDay
48 PASS new pw.Day(2000, 2, 1).middleDay().toString() is "2000-03-01"
49 Test Day.lastDay
50 PASS new pw.Day(2000, 2, 1).lastDay().toString() is "2000-03-01"
51 Test Day.valueOf
52 PASS new pw.Day(1970, 0, 1).valueOf() is 0
53 PASS new pw.Day(1970, 0, 2).valueOf() is 86400000
54 PASS new pw.Day(2000, 2, 1).valueOf() is 951868800000
55 PASS new pw.Day(1, 2, 1).valueOf() is -62130499200000
56 PASS new pw.Day(20000, 2, 1).valueOf() is 568977004800000
57 Test Day.toString
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"
60 PASS new pw.Day(20000, 2, 1).toString() is "20000-03-01"
61 Test Day.parse
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"
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"
66 PASS pw.Day.parse("0001-01-01").toString() is "0001-01-01"
67 PASS pw.Day.parse("02000-02-02").toString() is "2000-02-02"
68 PASS pw.Day.parse("2000-002-02").toString() is "2000-02-02"
69 PASS pw.Day.parse("2000-02-002").toString() is "2000-02-02"
70 PASS pw.Day.parse("2000-2-02").toString() is "2000-02-02"
71 PASS pw.Day.parse("2000-02-2").toString() is "2000-02-02"
72 PASS pw.Day.parse("1-02-02").toString() is "0001-02-02"
73 PASS pw.Day.parse("2000-02") is null
74 PASS pw.Day.parse("2000-W02") is null
75 PASS pw.Day.parse("x") is null
76 PASS pw.Day.parse("") is null
77 Test Week constructor
78 PASS new pw.Week(2000, 1).year is 2000
79 PASS new pw.Week(2000, 1).week is 1
80 PASS new pw.Week(2000, -1).year is 1999
81 PASS new pw.Week(2000, -1).week is 51
82 PASS new pw.Week(-2000, 1).year is -2000
83 PASS new pw.Week(-2000, 1).week is 1
84 PASS new pw.Week(2000, 55).year is 2001
85 PASS new pw.Week(2000, 55).week is 3
86 PASS new pw.Week(200000, 1).year is 200000
87 PASS new pw.Week(200000, 1).week is 1
88 Test Week.equals
89 PASS new pw.Week(2000, 1).equals(new pw.Week(2000, 1)) is true
90 PASS new pw.Week(2000, 1).equals(new pw.Week(2001, -51)) is true
91 PASS new pw.Week(2000, 1).equals(new pw.Week(1999, 53)) is true
92 PASS new pw.Week(2000, 1).equals(new pw.Week(2000, 2)) is false
93 PASS new pw.Week(2000, 1).equals(new pw.Week(2001, 1)) is false
94 PASS new pw.Week(2000, 1).equals(new pw.Week(2001, 2)) is false
95 Test Week.previous
96 PASS new pw.Week(2000, 2).previous().toString() is "2000-W01"
97 PASS new pw.Week(2000, 2).previous(1).toString() is "2000-W01"
98 PASS new pw.Week(2000, 2).previous(2).toString() is "1999-W52"
99 PASS new pw.Week(2000, 2).previous(3).toString() is "1999-W51"
100 PASS new pw.Week(2000, 2).previous(100).toString() is "1998-W07"
101 Test Week.next
102 PASS new pw.Week(2000, 2).next().toString() is "2000-W03"
103 PASS new pw.Week(2000, 2).next(1).toString() is "2000-W03"
104 PASS new pw.Week(2000, 2).next(2).toString() is "2000-W04"
105 PASS new pw.Week(2000, 2).next(3).toString() is "2000-W05"
106 PASS new pw.Week(2000, 2).next(100).toString() is "2001-W50"
107 Test Week.firstDay
108 PASS new pw.Week(2000, 2).firstDay().toString() is "2000-01-10"
109 PASS new pw.Week(2000, 50).firstDay().toString() is "2000-12-11"
110 PASS new pw.Week(1, 1).firstDay().toString() is "0001-01-01"
111 PASS new pw.Week(1, 50).firstDay().toString() is "0001-12-10"
112 PASS new pw.Week(20000, 1).firstDay().toString() is "20000-01-03"
113 PASS new pw.Week(20000, 50).firstDay().toString() is "20000-12-11"
114 Test Week.middleDay
115 PASS new pw.Week(2000, 2).middleDay().toString() is "2000-01-13"
116 PASS new pw.Week(2000, 50).middleDay().toString() is "2000-12-14"
117 PASS new pw.Week(1, 1).middleDay().toString() is "0001-01-04"
118 PASS new pw.Week(1, 50).middleDay().toString() is "0001-12-13"
119 PASS new pw.Week(20000, 1).middleDay().toString() is "20000-01-06"
120 PASS new pw.Week(20000, 50).middleDay().toString() is "20000-12-14"
121 Test Week.lastDay
122 PASS new pw.Week(2000, 2).lastDay().toString() is "2000-01-16"
123 PASS new pw.Week(2000, 50).lastDay().toString() is "2000-12-17"
124 PASS new pw.Week(1, 1).lastDay().toString() is "0001-01-07"
125 PASS new pw.Week(1, 50).lastDay().toString() is "0001-12-16"
126 PASS new pw.Week(20000, 1).lastDay().toString() is "20000-01-09"
127 PASS new pw.Week(20000, 50).lastDay().toString() is "20000-12-17"
128 Test Week.valueOf
129 PASS new pw.Week(1970, 1).valueOf() is -259200000
130 PASS new pw.Week(1970, 2).valueOf() is 345600000
131 PASS new pw.Week(2000, 1).valueOf() is 946857600000
132 PASS new pw.Week(1, 1).valueOf() is -62135596800000
133 PASS new pw.Week(20000, 2).valueOf() is 568972598400000
134 Test Week.toString
135 PASS new pw.Week(2000, 2).toString() is "2000-W02"
136 PASS new pw.Week(1, 50).toString() is "0001-W50"
137 PASS new pw.Week(20000, 2).toString() is "20000-W02"
138 Test Week.parse
139 PASS pw.Week.parse("2000-W02").toString() is "2000-W02"
140 PASS pw.Week.parse("1999-W10").toString() is "1999-W10"
141 PASS pw.Week.parse("0001-W23").toString() is "0001-W23"
142 PASS pw.Week.parse("12345-W32").toString() is "12345-W32"
143 PASS pw.Week.parse("02000-W02").toString() is "2000-W02"
144 PASS pw.Week.parse("2000-W002").toString() is "2000-W02"
145 PASS pw.Week.parse("2000-W2").toString() is "2000-W02"
146 PASS pw.Week.parse("1-W02").toString() is "0001-W02"
147 PASS pw.Week.parse("2000-02-03") is null
148 PASS pw.Week.parse("2000-02") is null
149 PASS pw.Week.parse("x") is null
150 PASS pw.Week.parse("") is null
151 Test Month constructor
152 PASS new pw.Month(2000, 1).year is 2000
153 PASS new pw.Month(2000, 1).month is 1
154 PASS new pw.Month(2000, -1).year is 1999
155 PASS new pw.Month(2000, -1).month is 11
156 PASS new pw.Month(-2000, 1).year is -2000
157 PASS new pw.Month(-2000, 1).month is 1
158 PASS new pw.Month(2000, 13).year is 2001
159 PASS new pw.Month(2000, 13).month is 1
160 PASS new pw.Month(200000, 1).year is 200000
161 PASS new pw.Month(200000, 1).month is 1
162 Test Month.equals
163 PASS new pw.Month(2000, 1).equals(new pw.Month(2000, 1)) is true
164 PASS new pw.Month(2000, 1).equals(new pw.Month(2001, -11)) is true
165 PASS new pw.Month(2000, 1).equals(new pw.Month(1999, 13)) is true
166 PASS new pw.Month(2000, 1).equals(new pw.Month(2000, 2)) is false
167 PASS new pw.Month(2000, 1).equals(new pw.Month(2001, 1)) is false
168 PASS new pw.Month(2000, 1).equals(new pw.Month(2001, 2)) is false
169 Test Month.previous
170 PASS new pw.Month(2000, 2).previous().toString() is "2000-02"
171 PASS new pw.Month(2000, 2).previous(1).toString() is "2000-02"
172 PASS new pw.Month(2000, 2).previous(2).toString() is "2000-01"
173 PASS new pw.Month(2000, 2).previous(3).toString() is "1999-12"
174 PASS new pw.Month(2000, 2).previous(100).toString() is "1991-11"
175 Test Month.next
176 PASS new pw.Month(2000, 2).next().toString() is "2000-04"
177 PASS new pw.Month(2000, 2).next(1).toString() is "2000-04"
178 PASS new pw.Month(2000, 2).next(2).toString() is "2000-05"
179 PASS new pw.Month(2000, 2).next(3).toString() is "2000-06"
180 PASS new pw.Month(2000, 2).next(100).toString() is "2008-07"
181 Test Month.firstDay
182 PASS new pw.Month(2000, 1).firstDay().toString() is "2000-02-01"
183 PASS new pw.Month(2000, 11).firstDay().toString() is "2000-12-01"
184 PASS new pw.Month(1, 0).firstDay().toString() is "0001-01-01"
185 PASS new pw.Month(1, 1).firstDay().toString() is "0001-02-01"
186 PASS new pw.Month(1, 11).firstDay().toString() is "0001-12-01"
187 PASS new pw.Month(20000, 0).firstDay().toString() is "20000-01-01"
188 PASS new pw.Month(20000, 1).firstDay().toString() is "20000-02-01"
189 PASS new pw.Month(20000, 11).firstDay().toString() is "20000-12-01"
190 Test Month.middleDay
191 PASS new pw.Month(2000, 1).middleDay().toString() is "2000-02-15"
192 PASS new pw.Month(2000, 11).middleDay().toString() is "2000-12-15"
193 PASS new pw.Month(1, 0).middleDay().toString() is "0001-01-15"
194 PASS new pw.Month(1, 1).middleDay().toString() is "0001-02-15"
195 PASS new pw.Month(1, 11).middleDay().toString() is "0001-12-15"
196 PASS new pw.Month(20000, 0).middleDay().toString() is "20000-01-15"
197 PASS new pw.Month(20000, 1).middleDay().toString() is "20000-02-15"
198 PASS new pw.Month(20000, 11).middleDay().toString() is "20000-12-15"
199 Test Month.lastDay
200 PASS new pw.Month(2000, 1).lastDay().toString() is "2000-02-29"
201 PASS new pw.Month(2000, 11).lastDay().toString() is "2000-12-31"
202 PASS new pw.Month(1, 0).lastDay().toString() is "0001-01-31"
203 PASS new pw.Month(1, 1).lastDay().toString() is "0001-02-28"
204 PASS new pw.Month(1, 11).lastDay().toString() is "0001-12-31"
205 PASS new pw.Month(20000, 0).lastDay().toString() is "20000-01-31"
206 PASS new pw.Month(20000, 1).lastDay().toString() is "20000-02-29"
207 PASS new pw.Month(20000, 11).lastDay().toString() is "20000-12-31"
208 Test Month.valueOf
209 PASS new pw.Month(1970, 0).valueOf() is 0
210 PASS new pw.Month(1970, 1).valueOf() is 1
211 PASS new pw.Month(2000, 0).valueOf() is 360
212 PASS new pw.Month(1, 0).valueOf() is -23628
213 PASS new pw.Month(20000, 11).valueOf() is 216371
214 Test Month.toString
215 PASS new pw.Month(2000, 0).toString() is "2000-01"
216 PASS new pw.Month(1, 11).toString() is "0001-12"
217 PASS new pw.Month(20000, 5).toString() is "20000-06"
218 Test Month.parse
219 PASS pw.Month.parse("2000-01").toString() is "2000-01"
220 PASS pw.Month.parse("1999-10").toString() is "1999-10"
221 PASS pw.Month.parse("0001-11").toString() is "0001-11"
222 PASS pw.Month.parse("12345-03").toString() is "12345-03"
223 PASS pw.Month.parse("02000-02").toString() is "2000-02"
224 PASS pw.Month.parse("2000-002").toString() is "2000-02"
225 PASS pw.Month.parse("2000-2").toString() is "2000-02"
226 PASS pw.Month.parse("1-02").toString() is "0001-02"
227 PASS pw.Month.parse("2000-02-03") is null
228 PASS pw.Month.parse("2000-W02") is null
229 PASS pw.Month.parse("x") is null
230 PASS pw.Month.parse("") is null
231 PASS successfullyParsed is true
232
233 TEST COMPLETE
234