Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Ajax: Run the PATCH test only in IE8 on TestSwarm
- Loading branch information
Showing
with
13 additions
and
10 deletions.
-
+13
−10
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 ); |
|
|
|