From: Jörn Zaefferer Date: Fri, 6 Oct 2006 14:14:00 +0000 (+0000) Subject: Added test for bug #232 X-Git-Tag: 1.0.2~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=29f3fd50f717b8e0592f46c6ab8bfd5d77e8e063;p=jquery.git Added test for bug #232 --- diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js index 6e56fa45d..2c63605d7 100644 --- a/src/ajax/ajax.js +++ b/src/ajax/ajax.js @@ -39,6 +39,13 @@ jQuery.fn.extend({ * start(); * }); * + * @test stop(); // check if load can be called with only url + * $('#first').load("data/name.php"); + * setTimeout(function() { + * ok( $('#first').text() == 'ERROR', 'Check if load works without callback'); + * start(); + * }, 100); + * * @name load * @type jQuery * @param String url The URL of the HTML file to load.