From 3d6ed4483e2c9c52d83bdab72e9b884ebf720f22 Mon Sep 17 00:00:00 2001 From: Richard Gibson Date: Mon, 23 Sep 2013 12:00:57 -0400 Subject: [PATCH] No ticket: Fix IE focus test failures --- test/unit/event.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/unit/event.js b/test/unit/event.js index bbb60fd25..c48a4d9ae 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -2640,7 +2640,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"); @@ -2664,7 +2664,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() { -- 2.39.5