X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=test%2Funit%2Fajax.js;h=7f3f39aff46c370ceed5e25c47f940fce8b83bdb;hb=0b4b3ee8a5eda75d8399b333cda54f6b319fe74c;hp=8e3c4b67072d08f28a4a1d1a426542c721d20d61;hpb=c90d609c0d10a8792b0b31e226592fd707f45570;p=jquery.git diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 8e3c4b6..7f3f39a 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -68,6 +68,18 @@ test("jQuery.ajax() - error callbacks", function() { }); }); +test(".ajax() - 304", function() { + expect( 1 ); + stop(); + + jQuery.ajax({ + url: url("data/notmodified.php"), + success: function(){ ok(true, "304 ok"); }, + error: function(){ ok(false, "304 not ok "); }, + complete: function(xhr){ start(); } + }); +}); + test(".load()) - 404 error callbacks", function() { expect( 6 ); stop();