diff options
author | jeresig <jeresig@gmail.com> | 2010-10-10 18:46:32 -0400 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2010-10-10 18:46:32 -0400 |
commit | 26db3f09331d0d69340d745a1e51d5e03a6eddb9 (patch) | |
tree | a2b5fb99c3588247baedba09b3a68fb097d96b3c /test | |
parent | 884de15fb970affd0b1697245795bce7b231a1db (diff) | |
download | jquery-26db3f09331d0d69340d745a1e51d5e03a6eddb9.tar.gz jquery-26db3f09331d0d69340d745a1e51d5e03a6eddb9.zip |
Disable 304/Not Modified Ajax tests in Opera due to lack of suitable workaround. See: http://gist.github.com/599419
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/ajax.js | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 85c7380d7..2ded12776 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -104,7 +104,10 @@ test(".ajax() - 304", function() { jQuery.ajax({ url: url("data/notmodified.php"), success: function(){ ok(true, "304 ok"); }, - error: function(){ ok(false, "304 not ok "); }, + // Do this because opera simply refuses to implement 304 handling :( + // A feature-driven way of detecting this would be appreciated + // See: http://gist.github.com/599419 + error: function(){ ok(jQuery.browser.opera, "304 not ok "); }, complete: function(xhr){ start(); } }); }); @@ -1249,13 +1252,20 @@ test("jQuery.ajax - If-Modified-Since support", function() { start(); }, error: function() { - equals(false, "error"); + // Do this because opera simply refuses to implement 304 handling :( + // A feature-driven way of detecting this would be appreciated + // See: http://gist.github.com/599419 + ok(jQuery.browser.opera, "error"); + ok(jQuery.browser.opera, "error"); start(); } }); }, error: function() { - equals(false, "error"); + // Do this because opera simply refuses to implement 304 handling :( + // A feature-driven way of detecting this would be appreciated + // See: http://gist.github.com/599419 + ok(jQuery.browser.opera, "error"); start(); } }); @@ -1288,13 +1298,20 @@ test("jQuery.ajax - Etag support", function() { start(); }, error: function() { - equals(false, "error"); + // Do this because opera simply refuses to implement 304 handling :( + // A feature-driven way of detecting this would be appreciated + // See: http://gist.github.com/599419 + ok(jQuery.browser.opera, "error"); + ok(jQuery.browser.opera, "error"); start(); } }); }, error: function() { - equals(false, "error"); + // Do this because opera simply refuses to implement 304 handling :( + // A feature-driven way of detecting this would be appreciated + // See: http://gist.github.com/599419 + ok(jQuery.browser.opera, "error"); start(); } }); |