git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added in support for content-type sniffing for scripts. Fixes #5718.
[jquery.git]
/
test
/
unit
/
ajax.js
diff --git
a/test/unit/ajax.js
b/test/unit/ajax.js
index
b1cb486
..
9b1e323
100644
(file)
--- 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);
test("jQuery.ajax() - json by content-type", function() {
expect(5);