]> source.dussan.org Git - jquery.git/commitdiff
There was a disabled test in the ajax test suite which said there were too many simul...
authorDavid Serduke <davidserduke@gmail.com>
Tue, 4 Dec 2007 01:51:07 +0000 (01:51 +0000)
committerDavid Serduke <davidserduke@gmail.com>
Tue, 4 Dec 2007 01:51:07 +0000 (01:51 +0000)
test/unit/ajax.js

index 3e2ac9f2b7ae28c82904bb41a3c6c20c95ce8698..2b3cfb656a47b5cb25e6b8beb1ea0814bc09c162 100644 (file)
@@ -218,23 +218,21 @@ test("synchronous request with callbacks", function() {
 });
 
 test("pass-through request object", function() {
-       expect(1);
+       expect(6);
        stop(true);
        
        var target = "data/name.html";
        var count = 0;
        var success = function() {
-               // Disabled
-               //if(count++ == 5)
+               // Re-enabled because a bug was found in the unit test that probably caused the problem
+               if(++count == 5)
                start();
        };
        
-       /* Test disabled, too many simultaneous requests
        ok( $.get(url(target), success), "get" );
        ok( $.post(url(target), success), "post" );
        ok( $.getScript(url("data/test.js"), success), "script" );
        ok( $.getJSON(url("data/json_obj.js"), success), "json" );
-       */
        ok( $.ajax({url: url(target), success: success}), "generic" );
 });