X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fevent.js;h=89067288386cea43ab822950a2cf8b27cd32407e;hb=45b8d2531ef6a7c775ca3bac06bcad6ffc5419e3;hp=4120af14ef080f78e31e1fbb6afe28f9d902da05;hpb=851846aabea72fe784b8a13cfb04cffecdb771b6;p=jquery.git diff --git a/test/unit/event.js b/test/unit/event.js index 4120af1..8906728 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -47,15 +47,11 @@ test("bind(), no data", function() { test("bind(), iframes", function() { // events don't work with iframes, see #939 - this test fails in IE because of contentDocument - // var doc = document.getElementById("iframe").contentDocument; - // - // doc.body.innerHTML = ""; - // - // var input = doc.getElementsByTagName("input")[0]; - // - // jQuery(input).bind("click",function() { - // ok( true, "Binding to element inside iframe" ); - // }).click(); + var doc = jQuery("#loadediframe").contents(); + + jQuery("div", doc).bind("click", function() { + ok( true, "Binding to element inside iframe" ); + }).click().unbind('click'); }); test("bind(), trigger change on select", function() {