diff options
author | Felix Nagel <info@felixnagel.com> | 2016-04-13 21:54:48 +0200 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2016-09-28 18:28:33 +0200 |
commit | 280cda31d053cea55a6aa3547d88ce9994bff286 (patch) | |
tree | 311ceb538c6868c7fd8f5358b1bbc17f9ae78eac /tests | |
parent | 3f7446565f51096993f3f9943d7f831bb9cbe03a (diff) | |
download | jquery-ui-280cda31d053cea55a6aa3547d88ce9994bff286.tar.gz jquery-ui-280cda31d053cea55a6aa3547d88ce9994bff286.zip |
Datepicker: Always focus calendar grid when opening
Remove arrow down key requirement.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/datepicker/core.js | 4 |
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 ); |