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