X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=test%2Funit%2Fajax.js;h=775523e58220bd8801aef9885c5ec1472eb6034c;hb=f91b944cabf7be9aadb40ffe35fce76b50f5f25f;hp=cd3aba0a4ba3f00e4f8350eba6bb758e5845d33a;hpb=76236a15062aa82a4841748e9071eb3c9535ef62;p=jquery.git diff --git a/test/unit/ajax.js b/test/unit/ajax.js index cd3aba0..775523e 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -979,6 +979,19 @@ test("jQuery.getJSON(String, Function) - JSON object with absolute url to local }); }); +test("jQuery.post - data", function() { + expect(2); + stop(); + + jQuery.post(url("data/name.php"), {xml: "5-2", length: 3}, function(xml){ + jQuery('math', xml).each(function() { + equals( jQuery('calculation', this).text(), '5-2', 'Check for XML' ); + equals( jQuery('result', this).text(), '3', 'Check for XML' ); + }); + start(); + }); +}); + test("jQuery.post(String, Hash, Function) - simple with xml", function() { expect(4); stop();