The timeout test was waiting for 10 seconds - unnecessary, lowered it to 1 second.
[jquery.git] / test / unit / ajax.js
index 62c5ece..ce099c1 100644 (file)
@@ -240,7 +240,7 @@ test("synchronous request with callbacks", function() {
 
 test("pass-through request object", function() {
        expect(8);
-       stop(true);
+       stop();
        
        var target = "data/name.html";
        var successCount = 0;
@@ -321,13 +321,13 @@ test("global ajaxSettings", function() {
 
 test("load(String)", function() {
        expect(1);
-       stop(true); // check if load can be called with only url
+       stop(); // check if load can be called with only url
        jQuery('#first').load("data/name.html", start);
 });
 
 test("load('url selector')", function() {
        expect(1);
-       stop(true); // check if load can be called with only url
+       stop(); // check if load can be called with only url
        jQuery('#first').load("data/test3.html div.user", function(){
                equals( jQuery(this).children("div").length, 2, "Verify that specific elements were injected" );
                start();
@@ -435,7 +435,7 @@ test("jQuery.getScript(String, Function) - with callback", function() {
 
 test("jQuery.getScript(String, Function) - no callback", function() {
        expect(1);
-       stop(true);
+       stop();
        jQuery.getScript(url("data/test.js"), start);
 });
 
@@ -821,7 +821,7 @@ test("ajaxSetup()", function() {
 test("custom timeout does not set error message when timeout occurs, see #970", function() {
        stop();
        jQuery.ajax({
-               url: "data/name.php?wait=10",
+               url: "data/name.php?wait=1",
                timeout: 500,
                error: function(request, status) {
                        ok( status != null, "status shouldn't be null in error handler" );