From 280cda31d053cea55a6aa3547d88ce9994bff286 Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Wed, 13 Apr 2016 21:54:48 +0200 Subject: Datepicker: Always focus calendar grid when opening Remove arrow down key requirement. --- tests/unit/datepicker/core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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 ); -- cgit v1.2.3