Added test for #935

This commit is contained in:
Jörn Zaefferer 2007-03-25 12:07:59 +00:00
parent 4903872c17
commit 4b9bed9543

View File

@ -94,3 +94,14 @@ test("events don't work with iframes, see #939", function() {
ok( true, "Event handling via jQuery's handler" ); ok( true, "Event handling via jQuery's handler" );
}).click(); }).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');
});