X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fajax.js;h=40ec9641565fb0047293d86a854dd5d912e59794;hb=c6a44c7943f460594a6a75081ad9bce76fea80f0;hp=813c65fbc09dc28b7929299b3da2e23f9bd262ff;hpb=227f8b2514de31bd0b5c45ce6fc1b942c081f776;p=jquery.git diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 813c65f..40ec964 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -573,6 +573,25 @@ test("$.ajax() - script, Remote", function() { }); }); +test("$.ajax() - script, Remote with POST", function() { + expect(3); + + var base = window.location.href.replace(/\?.*$/, ""); + + stop(); + + $.ajax({ + url: base + "data/test.js", + type: "POST", + dataType: "script", + success: function(data, status){ + ok( foobar, "Script results returned (GET, no callback)" ); + equals( status, "success", "Script results returned (GET, no callback)" ); + start(); + } + }); +}); + test("$.getJSON(String, Hash, Function) - JSON array", function() { expect(4); stop();