blob: 1bf9cdef375d9cf9a67e4a4b62334ab4b3a39850 [file] [log] [blame]
This tests keyboard events with KeyLocationCode argument.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS lastKeyboardEvent.type is "keydown"
PASS lastKeyboardEvent.keyCode is 16
PASS lastKeyboardEvent.location is KeyboardEvent.DOM_KEY_LOCATION_LEFT
PASS lastKeyboardEvent.type is "keydown"
PASS lastKeyboardEvent.keyCode is 17
PASS lastKeyboardEvent.location is KeyboardEvent.DOM_KEY_LOCATION_LEFT
PASS lastKeyboardEvent.type is "keydown"
PASS lastKeyboardEvent.keyCode is 18
PASS lastKeyboardEvent.location is KeyboardEvent.DOM_KEY_LOCATION_LEFT
PASS lastKeyboardEvent.type is "keydown"
PASS lastKeyboardEvent.keyCode is 16
PASS lastKeyboardEvent.location is KeyboardEvent.DOM_KEY_LOCATION_RIGHT
PASS lastKeyboardEvent.type is "keydown"
PASS lastKeyboardEvent.keyCode is 17
PASS lastKeyboardEvent.location is KeyboardEvent.DOM_KEY_LOCATION_RIGHT
PASS lastKeyboardEvent.type is "keydown"
PASS lastKeyboardEvent.keyCode is 18
PASS lastKeyboardEvent.location is KeyboardEvent.DOM_KEY_LOCATION_RIGHT
PASS successfullyParsed is true
TEST COMPLETE