jQuery: The Write Less, Do More JavaScript Library

Changeset 5502

Show
Ignore:
Timestamp:
05/08/08 16:25:12 (5 days ago)
Author:
aflesler
Message:

test runner: extra test case, [5501]

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/jquery/test/unit/event.js

    r5472 r5502  
    113113}); 
    114114 
    115 test("click()", function() { 
    116     expect(5); 
     115test("trigger() shortcuts", function() { 
     116    expect(6); 
    117117    $('<li><a href="#">Change location</a></li>').prependTo('#firstUL').find('a').bind('click', function() { 
    118118        var close = $('spanx', this); // same with $(this).find('span'); 
     
    139139    $('#simon1').click(); 
    140140    equals( clickCounter, 1, "Check that click, triggers onclick event handler on an a tag also" ); 
     141     
     142    $('<img />').load(function(){ 
     143        ok( true, "Trigger the load event, using the shortcut .load() (#2819)"); 
     144    }).load(); 
    141145}); 
    142146