X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=test%2Funit%2Fajax.js;h=8e3c4b67072d08f28a4a1d1a426542c721d20d61;hb=90a4abd5111e57213059eb80876551ae1fac6c53;hp=be4b3f0219b656356737aaf6eb6598f03de46864;hpb=273822c138c70b1d58e2d1199090e9efa3e0e53e;p=jquery.git diff --git a/test/unit/ajax.js b/test/unit/ajax.js index be4b3f0..8e3c4b6 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -1163,6 +1163,19 @@ test("data option: evaluate function values (#2806)", function() { }) }); +test("data option: empty bodies for non-GET requests", function() { + stop(); + jQuery.ajax({ + url: "data/echoData.php", + data: undefined, + type: "post", + success: function(result) { + equals( result, "" ); + start(); + } + }) +}); + test("jQuery.ajax - If-Modified-Since support", function() { expect( 3 ); @@ -1225,6 +1238,12 @@ test("jQuery.ajax - Etag support", function() { }); }); + +test("jQuery.ajax - active counter", function() { + ok( jQuery.ajax.active == 0, "ajax active counter should be zero: " + jQuery.ajax.active ); +}); + + } //}