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 3c9a08109..090c4aa1f 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -2867,4 +2867,14 @@ test("fixHooks extensions", function() { })(); +test("trigger click on checkbox, fires change event", function() { + expect(1); + + var check = jQuery("#check2"); + check.on( "change", function() { + // get it? + check.off("change"); + ok( true, "Change event fired as a result of triggered click" ); + }).trigger("click"); +}); |