diff options
author | jzaefferer <joern.zaefferer@gmail.com> | 2010-04-13 12:04:05 +0200 |
---|---|---|
committer | jzaefferer <joern.zaefferer@gmail.com> | 2010-04-13 12:04:05 +0200 |
commit | 3280e3356d2a4f57f70f8170206eb4a439d66400 (patch) | |
tree | 0d8e9a4e31599d179667547a96332972eb5f0bc1 /tests/unit/autocomplete | |
parent | 59ef373ddc630362e609a4da7363f16b5ff11978 (diff) | |
download | jquery-ui-3280e3356d2a4f57f70f8170206eb4a439d66400.tar.gz jquery-ui-3280e3356d2a4f57f70f8170206eb4a439d66400.zip |
Autocomplete unit tests: Fix event handling in IE
Diffstat (limited to 'tests/unit/autocomplete')
-rw-r--r-- | tests/unit/autocomplete/autocomplete_events.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/autocomplete/autocomplete_events.js b/tests/unit/autocomplete/autocomplete_events.js index 28a72145e..a8924e192 100644 --- a/tests/unit/autocomplete/autocomplete_events.js +++ b/tests/unit/autocomplete/autocomplete_events.js @@ -47,7 +47,7 @@ test("all events", function() { same( $(".ui-menu:visible").length, 1 ); ac.simulate("keydown", { keyCode: $.ui.keyCode.DOWN }); ac.simulate("keydown", { keyCode: $.ui.keyCode.ENTER }); - ac.blur(); + $.browser.msie ? ac.simulate("blur") : ac.blur(); }, 50); }); @@ -63,7 +63,8 @@ test("change without selection", function() { start(); } }); - ac.focus().val("ja").blur(); + ac.triggerHandler("focus"); + ac.val("ja").triggerHandler("blur"); }); test("cancel search", function() { |