Skip to content
Permalink
Browse files

Loosen the ajax statusText check so Safari AND Chrome pass.

  • Loading branch information...
dmethvin committed Jul 25, 2012
1 parent 647b772 commit bc07ae8c1dbe9af4cceee3f118ae8071a3a8afb2
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/unit/ajax.js
@@ -2153,7 +2153,7 @@ test( "jQuery.ajax - statusText" , 3, function() {
stop();
jQuery.ajax( url( "data/statusText.php?status=200&text=Hello" ) ).done(function( _, statusText, jqXHR ) {
strictEqual( statusText, "success", "callback status text ok for success" );
ok( jqXHR.statusText === "Hello" || jQuery.browser.safari && jqXHR.statusText === "OK", "jqXHR status text ok for success (" + jqXHR.statusText + ")" );
ok( jqXHR.statusText === "Hello" || jqXHR.statusText === "OK", "jqXHR status text ok for success (" + jqXHR.statusText + ")" );
jQuery.ajax( url( "data/statusText.php?status=404&text=World" ) ).fail(function( jqXHR, statusText ) {
strictEqual( statusText, "error", "callback status text ok for error" );
// ok( jqXHR.statusText === "World" || jQuery.browser.safari && jqXHR.statusText === "Not Found", "jqXHR status text ok for error (" + jqXHR.statusText + ")" );

0 comments on commit bc07ae8

Please sign in to comment.
You can’t perform that action at this time.