aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2013-09-23 12:00:57 -0400
committerRichard Gibson <richard.gibson@gmail.com>2013-09-23 12:01:09 -0400
commit9dadd68e348e19a13ea5baebbc3183e26b2ed7c5 (patch)
tree647128b548f3b20eceef0e787f74c3beadeed1df /test
parent2d4c0d5f375bcf59a5a0cd19c4562bd57f03fb1d (diff)
downloadjquery-9dadd68e348e19a13ea5baebbc3183e26b2ed7c5.tar.gz
jquery-9dadd68e348e19a13ea5baebbc3183e26b2ed7c5.zip
No ticket: Fix IE focus test failures
(cherry picked from commit 3d6ed4483e2c9c52d83bdab72e9b884ebf720f22)
Diffstat (limited to 'test')
-rw-r--r--test/unit/event.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/unit/event.js b/test/unit/event.js
index 7948e9b4a..1509043ce 100644
--- a/test/unit/event.js
+++ b/test/unit/event.js
@@ -2567,7 +2567,7 @@ test( "make sure events cloned correctly", 18, function() {
clone.find("#check1").trigger("change"); // 0 events should fire
});
-test( "Check order of focusin/focusout events", 2, function() {
+asyncTest( "Check order of focusin/focusout events", 2, function() {
var focus, blur,
input = jQuery("#name");
@@ -2591,7 +2591,10 @@ test( "Check order of focusin/focusout events", 2, function() {
jQuery("#search").trigger("focus");
// cleanup
- input.off();
+ setTimeout(function() {
+ input.off();
+ start();
+ }, 50 );
});
test( "String.prototype.namespace does not cause trigger() to throw (#13360)", function() {