X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fajax.js;h=8e3c4b67072d08f28a4a1d1a426542c721d20d61;hb=c90d609c0d10a8792b0b31e226592fd707f45570;hp=fe44ba3b619ca88f92efbca238d7f441e8f4e440;hpb=c34a62f8abbd9598e7a6647754c449ce92418b3a;p=jquery.git diff --git a/test/unit/ajax.js b/test/unit/ajax.js index fe44ba3..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 );