OLD | NEW |
1 Check stepUp() and stepDown() behavior for type=time. | 1 Check stepUp() and stepDown() behavior for type=time. |
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 Invalid value | 6 Invalid value |
7 PASS stepUp("", null, null) is "00:01" | 7 PASS stepUp("", null, null) is "00:01" |
8 PASS stepDown("", null, null) is "00:00" | 8 PASS stepDown("", null, null) is "00:00" |
9 Non-number arguments | 9 Non-number arguments |
10 PASS stepUp("20:13", null, null, "0") is "20:13" | 10 PASS stepUp("20:13", null, null, "0") is "20:13" |
11 PASS stepDown("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" | 12 PASS stepUp("20:13", null, null, "foo") is "20:13" |
13 PASS stepDown("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" | 14 PASS stepUp("20:13", null, null, null) is "20:13" |
15 PASS stepDown("20:13", null, null, null) is "20:13" | 15 PASS stepDown("20:13", null, null, null) is "20:13" |
16 Normal cases | 16 Normal cases |
17 PASS stepUp("20:13", null, null) is "20:14" | 17 PASS stepUp("20:13", null, null) is "20:14" |
18 PASS stepDown("20:13", null, null) is "20:12" | 18 PASS stepDown("20:13", null, null) is "20:12" |
19 PASS stepUp("20:13", null, null, 10) is "20:23" | 19 PASS stepUp("20:13", null, null, 10) is "20:23" |
20 PASS stepDown("20:13", null, null, 11) is "20:02" | 20 PASS stepDown("20:13", null, null, 11) is "20:02" |
21 PASS stepUp("20:13", "4", null, 2) is "20:13:08" | 21 PASS stepUp("20:13", "4", null, 2) is "20:13:08" |
22 PASS stepDown("20:13", "4", null, 3) is "20:12:48" | 22 PASS stepDown("20:13", "4", null, 3) is "20:12:48" |
23 Step=any | 23 Step=any |
24 PASS stepUp("20:13", "any", null) threw exception InvalidStateError: Failed to e
xecute 'stepUp' on 'HTMLInputElement': This form element does not have an allowe
d value step.. | 24 PASS stepUp("20:13", "any", null) threw exception InvalidStateError: Failed to e
xecute 'stepUp' on 'HTMLInputElement': This form element does not have an allowe
d 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 al
lowed 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 al
lowed value step.. |
26 Overflow/underflow | 26 Overflow/underflow |
27 PASS stepUp("20:13", "3.40282346e+38", null) is "23:59:59.999" | 27 FAIL stepUp("20:13", "3.40282346e+38", null) should be 20:13. Was 00:00:00. |
28 PASS stepDown("20:13", "3.40282346e+38", null) is "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" | 29 PASS stepUp("20:13", "1", "20:13") is "20:13:00" |
30 PASS stepDown("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" | 31 PASS stepUp("23:59", null, null) is "23:59" |
32 PASS stepDown("00:00", null, null) is "00:00" | 32 PASS stepDown("00:00", null, null) is "00:00" |
33 | 33 |
| 34 Step-mismatched initial values |
| 35 FAIL stepUp("20:13", "86400.000", null, 65536) should be 20:13. Was 00:00. |
| 36 FAIL stepUp("20:13", "86400.001", null, 65536) should be 20:13. Was 00:01:05.535
. |
| 37 PASS stepUp("20:13", "600", null, 1) is "20:20" |
| 38 PASS stepUp("20:13", "600", null, 2) is "20:30" |
| 39 PASS stepDown("20:13", "600", null, 1) is "20:10" |
| 40 PASS stepDown("20:13", "600", null, 2) is "20:00" |
| 41 |
34 PASS successfullyParsed is true | 42 PASS successfullyParsed is true |
35 | 43 |
36 TEST COMPLETE | 44 TEST COMPLETE |
37 | 45 |
OLD | NEW |