Skip to content
Permalink
Browse files

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

  • Loading branch information...
scottgonzalez committed Feb 24, 2011
1 parent c2f9677 commit bed6def5c02e6aeb713c0fe679b09ed02c6babb0
Showing with 6 additions and 2 deletions.
  1. +6 −2 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);
});

0 comments on commit bed6def

Please sign in to comment.
You can’t perform that action at this time.