]> source.dussan.org Git - jquery.git/commitdiff
No ticket: Fix IE focus test failures
authorRichard Gibson <richard.gibson@gmail.com>
Mon, 23 Sep 2013 16:00:57 +0000 (12:00 -0400)
committerRichard Gibson <richard.gibson@gmail.com>
Mon, 23 Sep 2013 16:01:09 +0000 (12:01 -0400)
(cherry picked from commit 3d6ed4483e2c9c52d83bdab72e9b884ebf720f22)

test/unit/event.js

index 7948e9b4a28d244e52c248d2ecfd77c87fffb8c8..1509043ce66b8d9b3d91c441be9bbdebcddc2252 100644 (file)
@@ -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() {