Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Dave Methvin authored September 11, 2012

Showing 1 changed file with 12 additions and 1 deletion. Show diff stats Hide diff stats

  1. 13  test/unit/ajax.js
13  test/unit/ajax.js
@@ -814,6 +814,16 @@ test("jQuery.ajax - xml: non-namespace elements inside namespaced elements (over
814 814
 	});
815 815
 });
816 816
 
  817
+// Skip HEAD tests in TestSwarm/Ngnix with Chrome because they consistently hang
  818
+if ( location.search.indexOf("swarmURL=") >= 0 && navigator.userAgent.indexOf("Chrome/") >= 0 ) {
  819
+
  820
+test("jQuery.ajax - HEAD requests (SKIPPED)", function() {
  821
+	expect(1);
  822
+	ok( true, "Skipping HEAD request tests for Chrome in TestSwarm" );
  823
+});
  824
+
  825
+} else {
  826
+
817 827
 test("jQuery.ajax - HEAD requests", function() {
818 828
 	expect(2);
819 829
 
@@ -837,9 +847,10 @@ test("jQuery.ajax - HEAD requests", function() {
837 847
 			});
838 848
 		}
839 849
 	});
840  
-
841 850
 });
842 851
 
  852
+}
  853
+
843 854
 test("jQuery.ajax - beforeSend", function() {
844 855
 	expect(1);
845 856
 	stop();

0 notes on commit 9c5089a

Please sign in to comment.
Something went wrong with that request. Please try again.