diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-05-13 21:54:08 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-05-20 14:27:55 -0400 |
commit | 8b4ce807cd97e3cb953995934d6c4f614de9fa03 (patch) | |
tree | c75ff8ea4984536656668ad35f463d0601e4429b /tests/unit/autocomplete/events.js | |
parent | b240eed81b96c9c4128ca5682d876fbc6f96a9c4 (diff) | |
download | jquery-ui-8b4ce807cd97e3cb953995934d6c4f614de9fa03.tar.gz jquery-ui-8b4ce807cd97e3cb953995934d6c4f614de9fa03.zip |
Autocomplete: Remove core event/alias and deprecated module dependencies
Diffstat (limited to 'tests/unit/autocomplete/events.js')
-rw-r--r-- | tests/unit/autocomplete/events.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/unit/autocomplete/events.js b/tests/unit/autocomplete/events.js index 606562aa9..8f96fb77f 100644 --- a/tests/unit/autocomplete/events.js +++ b/tests/unit/autocomplete/events.js @@ -66,7 +66,7 @@ $.each([ }), menu = element.autocomplete( "widget" ); - element.simulate( "focus" )[ settings.valueMethod ]( "j" ).keydown(); + element.simulate( "focus" )[ settings.valueMethod ]( "j" ).trigger( "keydown" ); setTimeout(function() { ok( menu.is( ":visible" ), "menu is visible after delay" ); element.simulate( "keydown", { keyCode: $.ui.keyCode.DOWN } ); @@ -112,10 +112,10 @@ asyncTest( "cancel search", function() { } }), menu = element.autocomplete( "widget" ); - element.val( "ja" ).keydown(); + element.val( "ja" ).trigger( "keydown" ); setTimeout(function() { ok( menu.is( ":hidden" ), "menu is hidden after first search" ); - element.val( "java" ).keydown(); + element.val( "java" ).trigger( "keydown" ); setTimeout(function() { ok( menu.is( ":visible" ), "menu is visible after second search" ); equal( menu.find( ".ui-menu-item" ).length, 2, "# of menu items" ); @@ -135,7 +135,7 @@ asyncTest( "cancel focus", function() { return false; } }); - element.val( "ja" ).keydown(); + element.val( "ja" ).trigger( "keydown" ); setTimeout(function() { element.simulate( "keydown", { keyCode: $.ui.keyCode.DOWN } ); equal( element.val(), customVal ); @@ -154,7 +154,7 @@ asyncTest( "cancel select", function() { return false; } }); - element.val( "ja" ).keydown(); + element.val( "ja" ).trigger( "keydown" ); setTimeout(function() { element.simulate( "keydown", { keyCode: $.ui.keyCode.DOWN } ); element.simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } ); @@ -179,7 +179,7 @@ asyncTest( "blur during remote search", function() { ok( false, "opened after a blur" ); } }); - ac.val( "ro" ).keydown(); + ac.val( "ro" ).trigger( "keydown" ); }); } ); |