Side navigation
Ticket #2806: dynamic-test.diff
File dynamic-test.diff, 0.5 KB (added by joern, May 06, 2008 08:08PM UTC)
test
Index: unit/ajax.js
===================================================================
--- test/unit/ajax.js (revision 5473)
+++ unit/ajax.js (working copy)
@@ -811,6 +811,22 @@
});
});
+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();
+ }
+ })
+});
+
}
//}
Download in other formats:
Original Format
File dynamic-test.diff, 0.5 KB (added by joern, May 06, 2008 08:08PM UTC)
test
Index: unit/ajax.js
===================================================================
--- test/unit/ajax.js (revision 5473)
+++ unit/ajax.js (working copy)
@@ -811,6 +811,22 @@
});
});
+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();
+ }
+ })
+});
+
}
//}