From: jeresig Date: Mon, 27 Sep 2010 16:10:00 +0000 (-0400) Subject: Allow 304/Not Modified tests to complete in Opera. X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=ea6a4813b7d996f6f7af0b61a5f1bf4ab80b291d;hp=0be7f4eb4f027dce00f11d7816290022d447d336;p=jquery.git Allow 304/Not Modified tests to complete in Opera. --- diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 18122b9..6199270 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -1247,8 +1247,16 @@ test("jQuery.ajax - If-Modified-Since support", function() { ok(data == null, "response body should be empty") } start(); + }, + error: function() { + equals(false, "error"); + start(); } }); + }, + error: function() { + equals(false, "error"); + start(); } }); }); @@ -1278,13 +1286,20 @@ test("jQuery.ajax - Etag support", function() { ok(data == null, "response body should be empty") } start(); + }, + error: function() { + equals(false, "error"); + start(); } }); + }, + error: function() { + equals(false, "error"); + start(); } }); }); - test("jQuery.ajax - active counter", function() { ok( jQuery.ajax.active == 0, "ajax active counter should be zero: " + jQuery.ajax.active ); });