Bug 759017 - Fix test that wasn't correctly checking keyCode in the whitelist. r=jlebar

This commit is contained in:
Mounir Lamouri 2012-05-31 16:39:35 +02:00
parent 9375413bdd
commit 522e00ceb1

View File

@ -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--;