]> source.dussan.org Git - jquery.git/commitdiff
Fixes a race condition in JSONP Local test.
authorjaubourg <j@ubourg.net>
Sun, 9 Jan 2011 23:52:20 +0000 (00:52 +0100)
committerjaubourg <j@ubourg.net>
Sun, 9 Jan 2011 23:52:20 +0000 (00:52 +0100)
test/unit/ajax.js

index 773088fc98c47b1c97d07d94902b2e16ff136554..9f46c4134aa1b185a5357d22b935d2ac79a0d8c5 100644 (file)
@@ -1084,7 +1084,7 @@ test("jQuery.ajax() - JSONP, Local", function() {
        expect(10);
 
        var count = 0;
-       function plus(){ if ( ++count == 9 ) start(); }
+       function plus(){ if ( ++count == 10 ) start(); }
 
        stop();