aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/datepicker/core.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/datepicker/core.js b/tests/unit/datepicker/core.js
index cfcc9c947..337032075 100644
--- a/tests/unit/datepicker/core.js
+++ b/tests/unit/datepicker/core.js
@@ -52,9 +52,9 @@ asyncTest( "Keyboard handling: input", function() {
ok( !picker.is( ":visible" ), "datepicker closed" );
- input.val( "" ).simulate( "keydown", { keyCode: $.ui.keyCode.DOWN } );
+ input.val( "" ).focus();
setTimeout( function() {
- ok( picker.is( ":visible" ), "Keystroke down opens datepicker" );
+ ok( picker.is( ":visible" ), "Datepicker opens when receiving focus" );
input.datepicker( "destroy" );
step2();
}, 100 );