From f4839f73a7057a21ea0506d903c4473575aed4a2 Mon Sep 17 00:00:00 2001 From: Mike Sherov Date: Sat, 14 Dec 2013 17:38:33 -0500 Subject: [PATCH] Draggable Unit Tests: Ensure IFRAMEs can be written to Draggable tests were failing in IE because the frame needs to be written to to be accessible to further DOM manipulation. --- tests/unit/draggable/draggable_core.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/unit/draggable/draggable_core.js b/tests/unit/draggable/draggable_core.js index b8ea19930..c9cdde260 100644 --- a/tests/unit/draggable/draggable_core.js +++ b/tests/unit/draggable/draggable_core.js @@ -224,11 +224,15 @@ test( "#9379: Draggable: position bug in scrollable div", function() { test( "#5727: draggable from iframe" , function() { expect( 1 ); - var iframe = $( "" ).appendTo( "#qunit-fixture" ), - iframeBody = iframe.contents().find( "body" ).append( - "
Relative
" - ), - draggable1 = iframeBody.find( "#iframe-draggable-1" ); + var iframeBody, draggable1, + iframe = $( "