From: Scott González Date: Thu, 24 Feb 2011 21:54:54 +0000 (+0100) Subject: Autocomplete tests: Fixed various bugs in various versions of IE. X-Git-Tag: 1.9m5~265 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bed6def5c02e6aeb713c0fe679b09ed02c6babb0;p=jquery-ui.git Autocomplete tests: Fixed various bugs in various versions of IE. --- diff --git a/tests/unit/autocomplete/autocomplete_events.js b/tests/unit/autocomplete/autocomplete_events.js index b0ee1acb4..20fdb8471 100644 --- a/tests/unit/autocomplete/autocomplete_events.js +++ b/tests/unit/autocomplete/autocomplete_events.js @@ -47,7 +47,9 @@ test("all events", function() { same( $(".ui-menu:visible").length, 1 ); ac.simulate("keydown", { keyCode: $.ui.keyCode.DOWN }); ac.simulate("keydown", { keyCode: $.ui.keyCode.ENTER }); - $.browser.msie ? ac.simulate("blur") : ac.blur(); + // blurring through jQuery causes a bug in IE 6 which causes the + // autocompletechange event to occur twice + ac[0].blur(); }, 50); }); @@ -87,7 +89,9 @@ test("all events - contenteditable", function() { same( $(".ui-menu:visible").length, 1 ); ac.simulate("keydown", { keyCode: $.ui.keyCode.DOWN }); ac.simulate("keydown", { keyCode: $.ui.keyCode.ENTER }); - $.browser.msie ? ac.simulate("blur") : ac.blur(); + // blurring through jQuery causes a bug in IE 6 which causes the + // autocompletechange event to occur twice + ac[0].blur(); }, 50); });