aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2012-09-11 15:41:46 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-09-11 15:42:10 -0400
commit9c5089a60d479a959b290a5b4ab8ef38c985e963 (patch)
treed3dbd7f735108ee5eac0c7ade5a8eb16535142e0 /test
parent01d406522095a26788b1975852ad7c1ee7cf6e34 (diff)
downloadjquery-9c5089a60d479a959b290a5b4ab8ef38c985e963.tar.gz
jquery-9c5089a60d479a959b290a5b4ab8ef38c985e963.zip
Chrome fails in ajax.js tests because TestSwarm/Ngnix won't give HEAD requests any respect. Skip them rather than hear Swarmy call FAILURE on each run.
Diffstat (limited to 'test')
-rw-r--r--test/unit/ajax.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js
index 1345eae3a..b5eec309b 100644
--- a/test/unit/ajax.js
+++ b/test/unit/ajax.js
@@ -814,6 +814,16 @@ test("jQuery.ajax - xml: non-namespace elements inside namespaced elements (over
});
});
+// Skip HEAD tests in TestSwarm/Ngnix with Chrome because they consistently hang
+if ( location.search.indexOf("swarmURL=") >= 0 && navigator.userAgent.indexOf("Chrome/") >= 0 ) {
+
+test("jQuery.ajax - HEAD requests (SKIPPED)", function() {
+ expect(1);
+ ok( true, "Skipping HEAD request tests for Chrome in TestSwarm" );
+});
+
+} else {
+
test("jQuery.ajax - HEAD requests", function() {
expect(2);
@@ -837,9 +847,10 @@ test("jQuery.ajax - HEAD requests", function() {
});
}
});
-
});
+}
+
test("jQuery.ajax - beforeSend", function() {
expect(1);
stop();