Added test for #939

This commit is contained in:
Jörn Zaefferer 2007-03-25 12:01:15 +00:00
parent 4e7c9b08a0
commit 4903872c17

View file

@ -81,4 +81,16 @@ test("toggle(Function,Function) assigned from within one('xxx'), see #1054", fun
return false;
}).click().click().click();
ok( false, "Seems like this doesn't work (that is, it doesn't fail) when triggering the event programmatically" );
});
});
test("events don't work with iframes, see #939", function() {
expect(2);
var iframe = document.getElementById('iframe');
var doc = iframe.contentDocument;
doc.addEventListener('click', function() {
ok( true, "Event handling via DOM 2 methods" );
}, false);
$(doc).click(function() {
ok( true, "Event handling via jQuery's handler" );
}).click();
});