]> source.dussan.org Git - jquery.git/commitdiff
Tests: Restrict an event test fallback to TestSwarm
authorRichard Gibson <richard.gibson@gmail.com>
Tue, 16 Apr 2019 04:47:02 +0000 (00:47 -0400)
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 29 Apr 2019 20:12:59 +0000 (22:12 +0200)
Closes gh-4357

test/unit/event.js

index c10341c16a2c538d8473437653b10f6880d00ffc..b77da465eb8e469ce016c6a314c9daacbbd37bc4 100644 (file)
@@ -3060,7 +3060,7 @@ QUnit.test( "focus-blur order (#12868)", function( assert ) {
                setTimeout( function() {
 
                        // DOM focus is unreliable in TestSwarm
-                       if ( order === 0 ) {
+                       if ( QUnit.isSwarm && order === 0 ) {
                                assert.ok( true, "GAP: Could not observe focus change" );
                                assert.ok( true, "GAP: Could not observe focus change" );
                        }