Skip to content
Permalink
Browse files

Added test for #935

  • Loading branch information
jzaefferer committed Mar 25, 2007
1 parent 4903872 commit 4b9bed95436bb060e57a18a08a5b486f7b812c6b
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/event/eventTest.js
@@ -94,3 +94,14 @@ test("events don't work with iframes, see #939", function() {
ok( true, "Event handling via jQuery's handler" );
}).click();
});

test("Event.data is a global event object", function() {
expect(3);
var counter = 0;
function selectOnChange(event) {
equals( event.data, counter++ );
}
$("select").each(function(i){
$(this).bind('change', i, selectOnChange);
}).trigger('change');
});

0 comments on commit 4b9bed9

Please sign in to comment.
You can’t perform that action at this time.