X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=test%2Funit%2Fevent.js;h=610448145ca0e5280d9bad2af0391e824653cc8a;hb=24e036c7c88e7e3a1f878292e4b59914e1f4575c;hp=73ce17cb200ef6068e8fafdbc95c90b0ff043492;hpb=b264f789b9a6995ad0e7eec6771fafa852717571;p=jquery.git diff --git a/test/unit/event.js b/test/unit/event.js index 73ce17c..6104481 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