blob: e9ddf16c1ffc69f54648c39266f7e41f09958c01 [file] [log] [blame]
Test for keyboard operations for <input type=month>
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
Digit keys
PASS input.value is "2012-09"
PASS changeEventsFired is 4
PASS inputEventsFired is 4
Digit keys with leading zero
PASS input.value is "0034-05"
PASS changeEventsFired is 3
PASS inputEventsFired is 3
Digit keys and backspace key
PASS input.value is "2020-02"
PASS changeEventsFired is 6
PASS inputEventsFired is 6
Digit keys with timeout
PASS input.value is "0001-02"
PASS changeEventsFired is 2
PASS inputEventsFired is 2
Digit keys clamp value
PASS input.value is "9999-12"
PASS changeEventsFired is 4
PASS inputEventsFired is 4
Left/Right arrow keys
PASS input.value is "0002-02"
PASS input.value is "0002-03"
PASS changeEventsFired is 2
PASS inputEventsFired is 2
Advance field keys
PASS input.value is "0003-06"
PASS input.value is "0004-06"
PASS input.value is "0005-06"
PASS input.value is "0006-06"
PASS input.value is "0007-06"
PASS input.value is "0008-06"
PASS changeEventsFired is 6
PASS inputEventsFired is 6
Up/Down arrow keys
PASS input.value is "2020-01"
PASS input.value is "2020-02"
PASS input.value is "2020-01"
PASS input.value is "2020-12"
PASS changeEventsFired is 4
PASS inputEventsFired is 4
Tab key
PASS input.value is "0002-02"
PASS document.activeElement.id is "after"
PASS input.value is "0002-03"
PASS document.activeElement.id is "before"
PASS changeEventsFired is 2
PASS inputEventsFired is 2
Backspace key
PASS input.value is ""
PASS input.value is "2020-07"
PASS changeEventsFired is 2
PASS inputEventsFired is 2
Delete key
PASS input.value is ""
PASS changeEventsFired is 1
PASS inputEventsFired is 1
Disabled/readonly
PASS input.value is "2020-09"
PASS input.value is "2020-01"
PASS input.value is "2020-01"
PASS input.value is "0002-01"
PASS changeEventsFired is 2
PASS inputEventsFired is 2
PASS successfullyParsed is true
TEST COMPLETE