From 70ae356e4ed1f74bb008939b345437fbe7deb26d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Mon, 17 Dec 2007 17:39:50 +0000 Subject: [PATCH] Test for #2069 --- test/unit/event.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/unit/event.js b/test/unit/event.js index 73ce17cb2..610448145 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -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 -- 2.39.5