]> source.dussan.org Git - jquery.git/commitdiff
Added test for bug #232
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 6 Oct 2006 14:14:00 +0000 (14:14 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Fri, 6 Oct 2006 14:14:00 +0000 (14:14 +0000)
src/ajax/ajax.js

index 6e56fa45dd2444396abcdebf0dcf41fa4ac2cc62..2c63605d72bf10f5be47720ef9941ea6439e3023 100644 (file)
@@ -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.