diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-05-10 12:35:19 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-05-10 12:35:19 -0400 |
commit | 319c5eb2c123c24983e38cc9d9fe3058ab045cf4 (patch) | |
tree | 2ab6e914ebdb7b2fe25e58369a4a02a7239e225d /tests | |
parent | 7e239e2ab2c1147c4a14f6de36e7ecbbdf3d97e9 (diff) | |
parent | 7f8ccc523a7879428913e64f4b7eb4ace4d17a08 (diff) | |
download | jquery-ui-319c5eb2c123c24983e38cc9d9fe3058ab045cf4.tar.gz jquery-ui-319c5eb2c123c24983e38cc9d9fe3058ab045cf4.zip |
Merge branch 'master' of github.com:jquery/jquery-ui
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); |