Autocomplete tests: Fixed various bugs in various versions of IE.

This commit is contained in:
Scott González 2011-02-24 22:54:54 +01:00
parent c2f9677252
commit bed6def5c0

View File

@ -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);
});