diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-02-24 22:54:54 +0100 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-02-24 22:55:24 +0100 |
commit | bed6def5c02e6aeb713c0fe679b09ed02c6babb0 (patch) | |
tree | 5b6aa4f41e2b6421bf8978edafb1cc70658e2c8f /tests | |
parent | c2f967725236826e2b1abf6c1d05f97e50914d91 (diff) | |
download | jquery-ui-bed6def5c02e6aeb713c0fe679b09ed02c6babb0.tar.gz jquery-ui-bed6def5c02e6aeb713c0fe679b09ed02c6babb0.zip |
Autocomplete tests: Fixed various bugs in various versions of IE.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/autocomplete/autocomplete_events.js | 8 |
1 files changed, 6 insertions, 2 deletions
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); }); |