aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/autocomplete/autocomplete_events.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/autocomplete/autocomplete_events.js')
-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);
});