X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=sidebyside;f=test%2Funit%2Fajax.js;h=a5891c53efe2ede1c77f13b9063d64dff93bc486;hb=96ca83d1501a2ffa78332c35d4a7afefe600f1ee;hp=c8bf2ce4bd93e506215dc3669c52d943fec278d9;hpb=ba48be3ada51aee683ce5992c5f00a8458f385f8;p=jquery.git diff --git a/test/unit/ajax.js b/test/unit/ajax.js index c8bf2ce..a5891c5 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -811,6 +811,22 @@ test("custom timeout does not set error message when timeout occurs, see #970", }); }); +test("data option: evaluate function values (#2806)", function() { + stop(); + $.ajax({ + url: "data/echoQuery.php", + data: { + key: function() { + return "value"; + } + }, + success: function(result) { + equals( result, "key=value" ); + start(); + } + }) +}); + } //}