aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2012-07-25 14:25:39 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-07-25 14:31:21 -0400
commitbc07ae8c1dbe9af4cceee3f118ae8071a3a8afb2 (patch)
treeaaf9faba47944709d8aa4825219bc875061af67c /test
parent647b772ab9ccbc3cd6e1dbd75f8a46a3e56eacec (diff)
downloadjquery-bc07ae8c1dbe9af4cceee3f118ae8071a3a8afb2.tar.gz
jquery-bc07ae8c1dbe9af4cceee3f118ae8071a3a8afb2.zip
Loosen the ajax statusText check so Safari AND Chrome pass.
Diffstat (limited to 'test')
-rw-r--r--test/unit/ajax.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js
index 85069b482..2371f8982 100644
--- a/test/unit/ajax.js
+++ b/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 + ")" );