1 Check stepUp() and stepDown() behavior for type=time.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
7 PASS stepUp("", null, null) is "00:01"
8 PASS stepDown("", null, null) is "00:00"
10 PASS stepUp("20:13", null, null, "0") is "20:13"
11 PASS stepDown("20:13", null, null, "0") is "20:13"
12 PASS stepUp("20:13", null, null, "foo") is "20:13"
13 PASS stepDown("20:13", null, null, "foo") is "20:13"
14 PASS stepUp("20:13", null, null, null) is "20:13"
15 PASS stepDown("20:13", null, null, null) is "20:13"
17 PASS stepUp("20:13", null, null) is "20:14"
18 PASS stepDown("20:13", null, null) is "20:12"
19 PASS stepUp("20:13", null, null, 10) is "20:23"
20 PASS stepDown("20:13", null, null, 11) is "20:02"
21 PASS stepUp("20:13", "4", null, 2) is "20:13:08"
22 PASS stepDown("20:13", "4", null, 3) is "20:12:48"
24 PASS stepUp("20:13", "any", null) threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': This form element does not have an allowed value step..
25 PASS stepDown("20:13", "any", null) threw exception InvalidStateError: Failed to execute 'stepDown' on 'HTMLInputElement': This form element does not have an allowed value step..
27 FAIL stepUp("20:13", "3.40282346e+38", null) should be 20:13. Was 00:00:00.
28 FAIL stepDown("20:13", "3.40282346e+38", null) should be 20:13. Was 00:00:00.
29 PASS stepUp("20:13", "1", "20:13") is "20:13:00"
30 PASS stepDown("20:13", "1", "20:13") is "20:13:00"
31 PASS stepUp("23:59", null, null) is "23:59"
32 PASS stepDown("00:00", null, null) is "00:00"
35 PASS setInputAttributes("10:00", "09:00", "60", "08:00"); input.stepUp(); input.value is "08:00"
36 PASS inputWithInitialValue.stepUp(); inputWithInitialValue.value is "12:34"
38 Step-mismatched initial values
39 PASS stepUp("20:13", "86400.000", null, 65536) is "00:00"
40 PASS stepUp("20:13", "86400.001", null, 65536) is "00:00:00.000"
41 PASS stepUp("20:13", "600", null, 1) is "20:20"
42 PASS stepUp("20:13", "600", null, 2) is "20:30"
43 PASS stepDown("20:13", "600", null, 1) is "20:10"
44 PASS stepDown("20:13", "600", null, 2) is "20:00"
46 PASS successfullyParsed is true