Skip to content
Permalink
Browse files

Autocomplete unit tests: Fix event handling in IE

  • Loading branch information
jzaefferer committed Apr 13, 2010
1 parent 59ef373 commit 3280e3356d2a4f57f70f8170206eb4a439d66400
Showing with 3 additions and 2 deletions.
  1. +3 −2 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() {

0 comments on commit 3280e33

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