X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fevent.js;h=c393f6d62a641e7492c9bde36e4969d3500c11f6;hb=82ba3709eec42dd8da33eb2023fda927166260eb;hp=71ea774b60626791eab28f75d889cf0195d98896;hpb=ba48be3ada51aee683ce5992c5f00a8458f385f8;p=jquery.git diff --git a/test/unit/event.js b/test/unit/event.js index 71ea774..c393f6d 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -112,8 +112,8 @@ test("bind(), namespaced events, cloned events", function() { ok( $("a.test:first").triggerHandler("click") === false, "Handler is bound to appendTo'd elements" ); }); -test("click()", function() { - expect(5); +test("trigger() shortcuts", function() { + expect(6); $('
  • Change location
  • ').prependTo('#firstUL').find('a').bind('click', function() { var close = $('spanx', this); // same with $(this).find('span'); equals( close.length, 0, "Context element does not exist, length must be zero" ); @@ -138,6 +138,10 @@ test("click()", function() { }; $('#simon1').click(); equals( clickCounter, 1, "Check that click, triggers onclick event handler on an a tag also" ); + + $('').load(function(){ + ok( true, "Trigger the load event, using the shortcut .load() (#2819)"); + }).load(); }); test("unbind(event)", function() { @@ -341,4 +345,4 @@ test("event properties", function() { ok( event.timeStamp, "assert event.timeStamp is present" ); start(); }).click(); -}); \ No newline at end of file +});