mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Added test for #935
This commit is contained in:
parent
4903872c17
commit
4b9bed9543
@ -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');
|
||||
});
|
Loading…
Reference in New Issue
Block a user