Testcase for jQuery Ticket 5383

complete is only called once for remote jsonp.

by jitter

JavaScript

/* and yes this is a remote jsonp despite the looks of it */
/* the output frame runs under http://fiddle.jshell.net */
$.ajax({
    url: "http://jsfiddle.net/echo/jsonp/",
    dataType: "jsonp",
    success: function(data) {
        console.log('got data ' + data.a);
    },
    error: function() {
        console.log('got ERROR ');
    },
    complete: function(xhr, textStatus) {
        console.log('got complete: ' + textStatus);
    },
    data: {
        a: "b",
        callback: "jojo"
    },
    jsonpCallback: "jojo"
});