jQuery Ajax unit tests

jQuery Ajax unit tests

I believe there may be some problems with the JSONP remote unit tests. Example:

  1. test("jQuery.ajax() - JSONP, Remote", function() {
    expect(4);

    var count = 0;
    function plus(){ if ( ++count == 4 ) start(); }

    var base = window.location.href.replace(/\?.*$/, "") + '/';

    stop();

    jQuery.ajax({
    url: base + "data/jsonp.php",











  2. // the rest of the test
The url generated for the jsonp will be  ../unit/index.htmldata/test.js

I believe it should be: ../unit/index.html/data/test.js

It is missing a backslash. This occurs if your address is specifying the exact page:
http://localhost/ajaxMonitor/ajaxMonitor-1.0.0/tests/unit/tests.ajax.monitor.validation.php