aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/ajax.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/ajax.js')
-rw-r--r--test/unit/ajax.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js
index b1cb486bd..9b1e3238f 100644
--- a/test/unit/ajax.js
+++ b/test/unit/ajax.js
@@ -797,6 +797,20 @@ test("jQuery.ajax() - script, Remote with scheme-less URL", function() {
});
});
+test("jQuery.ajax() - script by content-type", function() {
+ expect(1);
+
+ stop();
+
+ jQuery.ajax({
+ url: "data/script.php",
+ data: { header: "script" },
+ success: function() {
+ start();
+ }
+ });
+});
+
test("jQuery.ajax() - json by content-type", function() {
expect(5);