diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2011-05-10 16:59:26 +0200 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2011-05-10 16:59:26 +0200 |
commit | 5806d6554bfadc4500e97d57d07d6f44d2b90618 (patch) | |
tree | 809105a68a49e2a50b849e2b3f20be7487046b07 /tests | |
parent | c844bbd2edd4c5d822bc72394bce64af0952c76e (diff) | |
parent | a63d23c3145a88386b8274e3929630b2416d7f87 (diff) | |
download | jquery-ui-5806d6554bfadc4500e97d57d07d6f44d2b90618.tar.gz jquery-ui-5806d6554bfadc4500e97d57d07d6f44d2b90618.zip |
Merge remote branch 'kborchers/unitTest_bug_7024'
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/autocomplete/autocomplete_events.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/unit/autocomplete/autocomplete_events.js b/tests/unit/autocomplete/autocomplete_events.js index 35103d89b..eb009064c 100644 --- a/tests/unit/autocomplete/autocomplete_events.js +++ b/tests/unit/autocomplete/autocomplete_events.js @@ -203,4 +203,20 @@ test("cancel select", function() { }, 50); }); +test("blur without selection", function() { + expect(1); + var ac = $("#autocomplete").autocomplete({ + delay: 0, + source: data + }); + stop(); + ac.val("j").keydown(); + setTimeout(function() { + $( ".ui-menu-item" ).first().simulate("mouseover"); + ac.simulate("keydown", { keyCode: $.ui.keyCode.TAB }); + same( ac.val(), "j" ); + start(); + }, 50); +}); + })(jQuery); |