Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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.
  • Loading branch information...
commit 9c5089a60d479a959b290a5b4ab8ef38c985e963 1 parent 01d4065
@dmethvin dmethvin authored
Showing with 12 additions and 1 deletion.
  1. +12 −1 test/unit/ajax.js
View
13 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();
Please sign in to comment.
Something went wrong with that request. Please try again.