OLD | NEW |
1 Check stepUp() and stepDown() bahevior for type=datetime-local. | 1 Check stepUp() and stepDown() behavior for type=datetime-local. |
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) threw exception InvalidStateError: Failed to execute
'stepUp' on 'HTMLInputElement': The form element's current value is not a numbe
r.. | 7 PASS stepUp("", null, null) is "1970-01-01T00:01" |
8 PASS stepDown("", null, null) threw exception InvalidStateError: Failed to execu
te 'stepDown' on 'HTMLInputElement': The form element's current value is not a n
umber.. | 8 PASS stepDown("", null, null) is "1969-12-31T23:59" |
9 Non-number arguments | 9 Non-number arguments |
10 PASS stepUp("2010-02-10T20:13", null, null, "0") is "2010-02-10T20:13" | 10 PASS stepUp("2010-02-10T20:13", null, null, "0") is "2010-02-10T20:13" |
11 PASS stepDown("2010-02-10T20:13", null, null, "0") is "2010-02-10T20:13" | 11 PASS stepDown("2010-02-10T20:13", null, null, "0") is "2010-02-10T20:13" |
12 PASS stepUp("2010-02-10T20:13", null, null, "foo") is "2010-02-10T20:13" | 12 PASS stepUp("2010-02-10T20:13", null, null, "foo") is "2010-02-10T20:13" |
13 PASS stepDown("2010-02-10T20:13", null, null, "foo") is "2010-02-10T20:13" | 13 PASS stepDown("2010-02-10T20:13", null, null, "foo") is "2010-02-10T20:13" |
14 PASS stepUp("2010-02-10T20:13", null, null, null) is "2010-02-10T20:13" | 14 PASS stepUp("2010-02-10T20:13", null, null, null) is "2010-02-10T20:13" |
15 PASS stepDown("2010-02-10T20:13", null, null, null) is "2010-02-10T20:13" | 15 PASS stepDown("2010-02-10T20:13", null, null, null) is "2010-02-10T20:13" |
16 Normal cases | 16 Normal cases |
17 PASS stepUp("2010-02-10T20:13", null, null) is "2010-02-10T20:14" | 17 PASS stepUp("2010-02-10T20:13", null, null) is "2010-02-10T20:14" |
18 PASS stepDown("2010-02-10T20:13", null, null) is "2010-02-10T20:12" | 18 PASS stepDown("2010-02-10T20:13", null, null) is "2010-02-10T20:12" |
19 PASS stepUp("2010-02-10T20:13", null, null, 10) is "2010-02-10T20:23" | 19 PASS stepUp("2010-02-10T20:13", null, null, 10) is "2010-02-10T20:23" |
20 PASS stepDown("2010-02-10T20:13", null, null, 11) is "2010-02-10T20:02" | 20 PASS stepDown("2010-02-10T20:13", null, null, 11) is "2010-02-10T20:02" |
21 PASS stepUp("1970-01-01T20:13", "4", null, 2) is "1970-01-01T20:13:08" | 21 PASS stepUp("1970-01-01T20:13", "4", null, 2) is "1970-01-01T20:13:08" |
22 PASS stepDown("1970-01-01T20:13", "4", null, 3) is "1970-01-01T20:12:48" | 22 PASS stepDown("1970-01-01T20:13", "4", null, 3) is "1970-01-01T20:12:48" |
23 Step=any | 23 Step=any |
24 PASS stepUp("2010-02-10T20:13", "any", null) threw exception InvalidStateError:
Failed to execute 'stepUp' on 'HTMLInputElement': This form element does not hav
e an allowed value step.. | 24 PASS stepUp("2010-02-10T20:13", "any", null) threw exception InvalidStateError:
Failed to execute 'stepUp' on 'HTMLInputElement': This form element does not hav
e an allowed value step.. |
25 PASS stepDown("2010-02-10T20:13", "any", null) threw exception InvalidStateError
: Failed to execute 'stepDown' on 'HTMLInputElement': This form element does not
have an allowed value step.. | 25 PASS stepDown("2010-02-10T20:13", "any", null) threw exception InvalidStateError
: Failed to execute 'stepDown' on 'HTMLInputElement': This form element does not
have an allowed value step.. |
26 Overflow/underflow | 26 Overflow/underflow |
27 PASS stepUp("2010-02-10T20:13", "3.40282346e+38", null) threw exception InvalidS
tateError: Failed to execute 'stepUp' on 'HTMLInputElement': The form element's
new value (3.40282346e+41) would be higher than the maximum (8640000000000000),
and snapping to the maximum would exceed the amount of acceptible error.. | 27 PASS stepUp("2010-02-10T20:13", "3.40282346e+38", null) is "275760-09-13T00:00:0
0" |
28 PASS stepDown("2010-02-10T20:13", "3.40282346e+38", null) threw exception Invali
dStateError: Failed to execute 'stepDown' on 'HTMLInputElement': The form elemen
t's new value (-3.40282346e+41) would be lower than the minimum (-62135596800000
), and snapping to the minimum would exceed the amount of acceptible error.. | 28 PASS stepDown("2010-02-10T20:13", "3.40282346e+38", null) is "1970-01-01T00:00:0
0" |
29 PASS stepUp("2010-02-10T20:13", "1", "2010-02-10T20:13") threw exception Invalid
StateError: Failed to execute 'stepUp' on 'HTMLInputElement': The form element's
new value (1265832781000) would be higher than the maximum (1265832780000), and
snapping to the maximum would exceed the amount of acceptible error.. | 29 PASS stepUp("2010-02-10T20:13", "1", "2010-02-10T20:13") is "2010-02-10T20:13:00
" |
30 PASS stepDown("2010-02-10T20:13", "1", "2010-02-10T20:13") threw exception Inval
idStateError: Failed to execute 'stepDown' on 'HTMLInputElement': The form eleme
nt's new value (1265832779000) would be lower than the minimum (1265832780000),
and snapping to the minimum would exceed the amount of acceptible error.. | 30 PASS stepDown("2010-02-10T20:13", "1", "2010-02-10T20:13") is "2010-02-10T20:13:
00" |
31 PASS successfullyParsed is true | 31 PASS successfullyParsed is true |
32 | 32 |
33 TEST COMPLETE | 33 TEST COMPLETE |
34 | 34 |
OLD | NEW |