1 Check stepUp() and stepDown() behavior for type=date.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
7 PASS stepUp("", null, null) is "1970-01-02"
8 PASS stepDown("", null, null) is "1969-12-31"
10 PASS stepUp("2010-02-10", null, null, "0") is "2010-02-10"
11 PASS stepDown("2010-02-10", null, null, "0") is "2010-02-10"
12 PASS stepUp("2010-02-10", null, null, "foo") is "2010-02-10"
13 PASS stepDown("2010-02-10", null, null, "foo") is "2010-02-10"
14 PASS stepUp("2010-02-10", null, null, null) is "2010-02-10"
15 PASS stepDown("2010-02-10", null, null, null) is "2010-02-10"
17 PASS stepDown("1970-01-04", "2", null) is "1970-01-03"
18 PASS stepUp("2010-02-10", null, null) is "2010-02-11"
19 PASS stepDown("2010-02-10", null, null) is "2010-02-09"
20 PASS stepUp("2010-02-10", null, null, 10) is "2010-02-20"
21 PASS stepDown("2010-02-10", null, null, 11) is "2010-01-30"
22 PASS stepUp("1970-01-01", "4", null, 2) is "1970-01-09"
23 PASS stepDown("1970-01-01", "4", null, 3) is "1969-12-20"
25 PASS stepUp("2010-02-10", "any", null) threw exception InvalidStateError: Failed to execute 'stepUp' on 'HTMLInputElement': This form element does not have an allowed value step..
26 PASS stepDown("2010-02-10", "any", null) threw exception InvalidStateError: Failed to execute 'stepDown' on 'HTMLInputElement': This form element does not have an allowed value step..
28 PASS stepUp("2010-02-10", "3.40282346e+38", null) is "1970-01-01"
29 PASS stepDown("2010-02-10", "3.40282346e+38", null) is "1970-01-01"
30 PASS stepUp("2010-02-10", "1", "2010-02-10") is "2010-02-10"
31 PASS stepDown("2010-02-10", "1", "2010-02-10") is "2010-02-10"
33 PASS successfullyParsed is true