aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-02-24 22:54:54 +0100
committerScott González <scott.gonzalez@gmail.com>2011-02-24 22:55:24 +0100
commitbed6def5c02e6aeb713c0fe679b09ed02c6babb0 (patch)
tree5b6aa4f41e2b6421bf8978edafb1cc70658e2c8f /tests
parentc2f967725236826e2b1abf6c1d05f97e50914d91 (diff)
downloadjquery-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.js8
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);
});