X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fajax.js;h=09074f3098b04bfe1cbd524c6fc1b237e8cef429;hb=45b3a884d55ce6004f7cec3fd27b42198b147ceb;hp=62c5ece2d21572d021a9c6b03e7dcca98865c6b0;hpb=9e48649729a5d4cd9ce52bcba067ba33a562cb4b;p=jquery.git diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 62c5ece..09074f3 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -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); }); @@ -818,10 +818,11 @@ test("ajaxSetup()", function() { jQuery.ajax(); }); +/* 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" ); @@ -830,6 +831,7 @@ test("custom timeout does not set error message when timeout occurs, see #970", } }); }); +*/ test("data option: evaluate function values (#2806)", function() { stop();