Skip to content
Permalink
Browse files
Added test for #935
  • Loading branch information
jzaefferer committed Mar 25, 2007
1 parent 4903872 commit 4b9bed9
Showing 1 changed file with 11 additions and 0 deletions.
@@ -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.