mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-29 08:14:06 +00:00
Update keyCode to which
This commit is contained in:
parent
444ed82327
commit
16a8223db7
@ -256,7 +256,7 @@ describe('Autocomplete', function () {
|
|||||||
autocomplete.onValueChange();
|
autocomplete.onValueChange();
|
||||||
|
|
||||||
var event = $.Event('keydown');
|
var event = $.Event('keydown');
|
||||||
event.keyCode = 9; // the tab keycode
|
event.which = 9; // the tab keycode
|
||||||
spyOn(event, 'stopImmediatePropagation');
|
spyOn(event, 'stopImmediatePropagation');
|
||||||
spyOn(event, 'preventDefault');
|
spyOn(event, 'preventDefault');
|
||||||
spyOn(autocomplete, 'suggest');
|
spyOn(autocomplete, 'suggest');
|
||||||
@ -283,7 +283,7 @@ describe('Autocomplete', function () {
|
|||||||
autocomplete.onValueChange();
|
autocomplete.onValueChange();
|
||||||
|
|
||||||
var event = $.Event('keydown');
|
var event = $.Event('keydown');
|
||||||
event.keyCode = 9; // the tab keycode
|
event.which = 9; // the tab keycode
|
||||||
spyOn(event, 'stopImmediatePropagation');
|
spyOn(event, 'stopImmediatePropagation');
|
||||||
spyOn(event, 'preventDefault');
|
spyOn(event, 'preventDefault');
|
||||||
spyOn(autocomplete, 'suggest');
|
spyOn(autocomplete, 'suggest');
|
||||||
|
Loading…
Reference in New Issue
Block a user