mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 759017 - Fix test that wasn't correctly checking keyCode in the whitelist. r=jlebar
This commit is contained in:
parent
9375413bdd
commit
522e00ceb1
@ -48,7 +48,7 @@ var nbEvents = 15;
|
||||
function eventHandler(e) {
|
||||
ok(((e.type == 'keydown' || e.type == 'keypress' || e.type == 'keyup') &&
|
||||
!e.defaultPrevented &&
|
||||
whitelistedEvents.indexOf(e.keyCode)),
|
||||
(whitelistedEvents.indexOf(e.keyCode) != -1)),
|
||||
"[ " + e.type + "] Handled event should be a non prevented key event in the white list.");
|
||||
|
||||
nbEvents--;
|
||||
|
Loading…
Reference in New Issue
Block a user