diff options
author | Rick Waldron <waldron.rick@gmail.com> | 2012-04-10 21:54:07 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2012-04-10 21:54:07 -0400 |
commit | 2f1ddd450752b5ba2efadb3fdd7b9b13b67e851e (patch) | |
tree | c7259ae942a0d678e3c7be29234f14ca4fc836a0 /test | |
parent | 62a4c8450367a8f1ef3a6ae3c5c08c7a025113c2 (diff) | |
download | jquery-2f1ddd450752b5ba2efadb3fdd7b9b13b67e851e.tar.gz jquery-2f1ddd450752b5ba2efadb3fdd7b9b13b67e851e.zip |
Fix #11500. Allow triggered, simulated change events.
Diffstat (limited to 'test')
-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"); +}); |