diff options
Diffstat (limited to 'test/unit/event.js')
-rw-r--r-- | test/unit/event.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/unit/event.js b/test/unit/event.js index 02aad5e36..0c379d051 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -2915,6 +2915,16 @@ QUnit.test( "originalEvent property for Chrome, Safari, Fx & Edge of simulated e outer.off( "focusin" ); } ); +QUnit.test( "trigger('click') on radio passes extra params", function( assert ) { + assert.expect( 1 ); + var $radio = jQuery( "<input type='radio' />" ).appendTo( "#qunit-fixture" ) + .on( "click", function( e, data ) { + assert.ok( data, "Trigger data is passed to radio click handler" ); + } ); + + $radio.trigger( "click", [ true ] ); +} ); + QUnit[ jQuery.fn.click ? "test" : "skip" ]( "trigger() shortcuts", function( assert ) { assert.expect( 5 ); |