Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / forms / week / week-stepup-stepdown-expected.txt
1 Check stepUp() and stepDown() behavior for type=week.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
6 Invalid value
7 PASS stepUp("", null, null) is "1970-W02"
8 PASS stepDown("", null, null) is "1970-W01"
9 Non-number arguments
10 PASS stepUp("2010-W02", null, null, "0") is "2010-W02"
11 PASS stepDown("2010-W02", null, null, "0") is "2010-W02"
12 PASS stepUp("2010-W02", null, null, "foo") is "2010-W02"
13 PASS stepDown("2010-W02", null, null, "foo") is "2010-W02"
14 PASS stepUp("2010-W02", null, null, null) is "2010-W02"
15 PASS stepDown("2010-W02", null, null, null) is "2010-W02"
16 Normal cases
17 PASS stepUp("2010-W02", null, null) is "2010-W03"
18 PASS stepDown("2010-W02", null, null) is "2010-W01"
19 PASS stepUp("2010-W02", null, null, 10) is "2010-W12"
20 PASS stepDown("2010-W02", null, null, 11) is "2009-W44"
21 PASS stepUp("1970-W01", "4", null, 2) is "1970-W09"
22 PASS stepDown("1970-W01", "4", null, 3) is "1969-W41"
23 Step=any
24 PASS stepUp("2010-W02", "any", null) threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': This form element does not have an allowed value step..
25 PASS stepDown("2010-W02", "any", null) threw exception InvalidStateError: Failed to execute 'stepDown' on 'HTMLInputElement': This form element does not have an allowed value step..
26 Overflow/underflow
27 PASS stepUp("2010-W02", "3.40282346e+38", null) is "275760-W37"
28 PASS stepDown("2010-W02", "3.40282346e+38", null) is "1970-W01"
29 PASS stepUp("2010-W02", "1", "2010-W02") is "2010-W02"
30 PASS stepDown("2010-W02", "1", "2010-W02") is "2010-W02"
31
32 PASS successfullyParsed is true
33
34 TEST COMPLETE
35