mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Tests: Skip ETag AJAX tests on TestSwarm
TestSwarm is now proxied via Cloudflare which cuts out headers relevant for ETag tests, failing them. We're still running those tests in Karma on Chrome & Firefox (including Firefox ESR). Closes gh-4974
This commit is contained in:
parent
19ced963c6
commit
00c060d161
@ -1634,12 +1634,25 @@ QUnit.module( "ajax", {
|
|||||||
function( label, cache ) {
|
function( label, cache ) {
|
||||||
jQuery.each(
|
jQuery.each(
|
||||||
{
|
{
|
||||||
"If-Modified-Since": "mock.php?action=ims",
|
"If-Modified-Since": {
|
||||||
"Etag": "mock.php?action=etag"
|
url: "mock.php?action=ims",
|
||||||
|
qunitMethod: "test"
|
||||||
|
},
|
||||||
|
"Etag": {
|
||||||
|
url: "mock.php?action=etag",
|
||||||
|
|
||||||
|
// Support: TestSwarm
|
||||||
|
// TestSwarm is now proxied via Cloudflare which cuts out
|
||||||
|
// headers relevant for ETag tests, failing them. We're still
|
||||||
|
// running those tests in Karma on Chrome & Firefox (including
|
||||||
|
// Firefox ESR).
|
||||||
|
qunitMethod: QUnit.isSwarm ? "skip" : "test"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
function( type, url ) {
|
function( type, data ) {
|
||||||
url = baseURL + url + "&ts=" + ifModifiedNow++;
|
var url = baseURL + data.url + "&ts=" + ifModifiedNow++;
|
||||||
QUnit.test( "jQuery.ajax() - " + type + " support" + label, function( assert ) {
|
QUnit[ data.qunitMethod ]( "jQuery.ajax() - " + type +
|
||||||
|
" support" + label, function( assert ) {
|
||||||
assert.expect( 4 );
|
assert.expect( 4 );
|
||||||
var done = assert.async();
|
var done = assert.async();
|
||||||
jQuery.ajax( {
|
jQuery.ajax( {
|
||||||
|
Loading…
Reference in New Issue
Block a user