Skip to content

Commit 2524da0

Browse files
committed
Ajax: Run the PATCH test only in IE8 on TestSwarm
Fixes gh-1994 Closes gh-2026
1 parent ba352e8 commit 2524da0

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

test/unit/ajax.js

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,16 +1578,19 @@ module( "ajax", {
15781578
}
15791579
} );
15801580

1581-
ajaxTest( "#13240 - jQuery.ajax() - support non-RFC2616 methods", 1, {
1582-
url: "data/echoQuery.php",
1583-
method: "PATCH",
1584-
success: function() {
1585-
ok( true, "success" );
1586-
},
1587-
error: function() {
1588-
ok( false, "error" );
1589-
}
1590-
});
1581+
// BrowserStack PATCH support sometimes breaks so on TestSwarm run the test in IE8 only.
1582+
if ( location.search.indexOf( "swarmURL=" ) === -1 || document.documentMode < 9 ) {
1583+
ajaxTest( "#13240 - jQuery.ajax() - support non-RFC2616 methods", 1, {
1584+
url: "data/echoQuery.php",
1585+
method: "PATCH",
1586+
success: function() {
1587+
ok( true, "success" );
1588+
},
1589+
error: function() {
1590+
ok( false, "error" );
1591+
}
1592+
} );
1593+
}
15911594

15921595
testIframeWithCallback( "#14379 - jQuery.ajax() on unload", "ajax/onunload.html", function( status ) {
15931596
expect( 1 );

0 commit comments

Comments
 (0)