jQuery: The Write Less, Do More JavaScript Library

Changeset 4005

Show
Ignore:
Timestamp:
12/04/07 01:51:07 (8 months ago)
Author:
davidserduke
Message:

There was a disabled test in the ajax test suite which said there were too many simultainous requests. I re-enabled it when I found a bug that might have been the cause of the failure instead and it seems to work fine. We can disable it again if that ends up not being the case.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/jquery/test/unit/ajax.js

    r3978 r4005  
    219219 
    220220test("pass-through request object", function() { 
    221     expect(1); 
     221    expect(6); 
    222222    stop(true); 
    223223     
     
    225225    var count = 0; 
    226226    var success = function() { 
    227         // Disabled 
    228         //if(count++ == 5) 
     227        // Re-enabled because a bug was found in the unit test that probably caused the problem 
     228        if(++count == 5) 
    229229        start(); 
    230230    }; 
    231231     
    232     /* Test disabled, too many simultaneous requests 
    233232    ok( $.get(url(target), success), "get" ); 
    234233    ok( $.post(url(target), success), "post" ); 
    235234    ok( $.getScript(url("data/test.js"), success), "script" ); 
    236235    ok( $.getJSON(url("data/json_obj.js"), success), "json" ); 
    237     */ 
    238236    ok( $.ajax({url: url(target), success: success}), "generic" ); 
    239237});