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.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js
index 5704d73e0..14c621826 100644
--- a/test/unit/ajax.js
+++ b/test/unit/ajax.js
@@ -799,6 +799,21 @@ test("jQuery.ajax() - JSONP, Local", function() {
plus();
}
});
+
+ // Supports Ticket #5803
+ jQuery.ajax({
+ url: "data/jsonp.php",
+ jsonpCallback: "jsonpResults",
+ success: function(data){
+ ok( data.data, "JSON results returned without dataType:jsonp when jsonpCallback is defined" );
+ plus();
+ },
+ error: function(data){
+ ok( false, "Ajax error JSON (GET, custom callback name)" );
+ plus();
+ }
+ });
+
});
test("JSONP - Custom JSONP Callback", function() {