});
});
-/* asyncTest( "jQuery.ajax() - JSONP, Explicit jsonp/Callback param " + label, function() {
+ asyncTest( "jQuery.ajax() - JSONP, Explicit jsonp/Callback param " + label, function() {
expect( 9 );
var count = 0;
function plus() {
- if ( ++count === 4 ) {
+ if ( ++count === 7 ) {
start();
}
}
plus();
}
});
-
+
window["jsonpResults"] = function( data ) {
ok( data["data"], "JSON results returned (GET, custom callback function)" );
window["jsonpResults"] = undefined;
error: function( data ) {
ok( false, "Ajax error JSON (GET, custom callback name to be cleaned up)" );
plus();
+ plus();
}
});
}
});
});
-*/
asyncTest( "jQuery.ajax() - JSONP, Callback in data, " + label, function() {
expect( 2 );