});
test("jQuery.ajax() - JSONP, Local", function() {
- expect(9);
+ expect(10);
var count = 0;
function plus(){ if ( ++count == 9 ) start(); }
}
});
+ jQuery.ajax({
+ url: "data/jsonp.php",
+ dataType: "jsonp",
+ data: {
+ callback: "?"
+ },
+ success: function(data){
+ ok( data.data, "JSON results returned (GET, processed data callback)" );
+ plus();
+ },
+ error: function(data){
+ ok( false, "Ajax error JSON (GET, processed data callback)" );
+ plus();
+ }
+ });
+
jQuery.ajax({
url: "data/jsonp.php",
dataType: "jsonp",