Skip to content
Permalink
Browse files

Added test for #939

  • Loading branch information
jzaefferer committed Mar 25, 2007
1 parent 4e7c9b0 commit 4903872c17f8809bd0c027092fc55d139d8ae789
Showing with 13 additions and 1 deletion.
  1. +13 −1 src/event/eventTest.js
@@ -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();
});

0 comments on commit 4903872

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