]> source.dussan.org Git - jquery.git/commitdiff
Test for #2069
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 17 Dec 2007 17:39:50 +0000 (17:39 +0000)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 17 Dec 2007 17:39:50 +0000 (17:39 +0000)
test/unit/event.js

index 73ce17cb200ef6068e8fafdbc95c90b0ff043492..610448145ca0e5280d9bad2af0391e824653cc8a 100644 (file)
@@ -263,3 +263,11 @@ test("toggle(Function, Function)", function() {
                return false;
        }).click().click().click();
 });
+
+test("jQuery(function($) {})", function() {
+       stop();
+       jQuery(function($) {
+               equals(jQuery, $, "ready doesn't provide an event object, instead it provides a reference to the jQuery function, see http://docs.jquery.com/Events/ready#fn");
+               start();
+       });
+});
\ No newline at end of file