From 2524da09c6aa2e3227246ecb1b382bbfe4cead40 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Go=C5=82=C4=99biowski?= Date: Sun, 25 Jan 2015 01:24:22 +0100 Subject: [PATCH] Ajax: Run the PATCH test only in IE8 on TestSwarm Fixes gh-1994 Closes gh-2026 --- test/unit/ajax.js | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 89161a928..d048fdad9 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -1578,16 +1578,19 @@ module( "ajax", { } } ); - ajaxTest( "#13240 - jQuery.ajax() - support non-RFC2616 methods", 1, { - url: "data/echoQuery.php", - method: "PATCH", - success: function() { - ok( true, "success" ); - }, - error: function() { - ok( false, "error" ); - } - }); + // BrowserStack PATCH support sometimes breaks so on TestSwarm run the test in IE8 only. + if ( location.search.indexOf( "swarmURL=" ) === -1 || document.documentMode < 9 ) { + ajaxTest( "#13240 - jQuery.ajax() - support non-RFC2616 methods", 1, { + url: "data/echoQuery.php", + method: "PATCH", + success: function() { + ok( true, "success" ); + }, + error: function() { + ok( false, "error" ); + } + } ); + } testIframeWithCallback( "#14379 - jQuery.ajax() on unload", "ajax/onunload.html", function( status ) { expect( 1 ); -- 2.39.5