From 45b8d2531ef6a7c775ca3bac06bcad6ffc5419e3 Mon Sep 17 00:00:00 2001 From: Brandon Aaron Date: Wed, 29 Apr 2009 22:04:41 +0000 Subject: [PATCH] enable test for binding events cross-frame that was fixed in r6316 --- test/unit/event.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) 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() { -- 1.7.10.4