diff options
Diffstat (limited to 'test/unit/event.js')
-rw-r--r-- | test/unit/event.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/unit/event.js b/test/unit/event.js index 274cf41b5..e8201f93c 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -906,7 +906,7 @@ QUnit.test( "mouseenter, mouseleave don't catch exceptions", function( assert ) if ( jQuery.fn.click ) { QUnit.test( "trigger() shortcuts", function( assert ) { - assert.expect( 5 ); + assert.expect( 6 ); var counter, clickCounter, elem = jQuery( "<li><a href='#'>Change location</a></li>" ).prependTo( "#firstUL" ); @@ -938,6 +938,13 @@ if ( jQuery.fn.click ) { jQuery( "#simon1" ).click(); assert.equal( clickCounter, 1, "Check that click, triggers onclick event handler on an a tag also" ); + elem = jQuery("<img />").load(function(){ + ok( true, "Trigger the load event, using the shortcut .load() (#2819)"); + }).load(); + + // manually clean up detached elements + elem.remove(); + // test that special handlers do not blow up with VML elements (#7071) jQuery( "<xml:namespace ns='urn:schemas-microsoft-com:vml' prefix='v' />" ).appendTo( "head" ); jQuery( "<v:oval id='oval' style='width:100pt;height:75pt;' fillcolor='red'> </v:oval>" ).appendTo( "#form" ); |