diff --git a/test/unit/offset.js b/test/unit/offset.js index dc56f06ec..2692f7ad2 100644 --- a/test/unit/offset.js +++ b/test/unit/offset.js @@ -554,6 +554,7 @@ test("iframe scrollTop/Left (see gh-1945)", function() { var ifDoc = jQuery( "#iframe" )[ 0 ].contentDocument; jQuery( "#iframe" ).css( "width", "50px" ).css( "height", "50px" ); ifDoc.write( "
" ); + ifDoc.close(); jQuery( ifDoc ).scrollTop( 200 ); jQuery( ifDoc ).scrollLeft( 500 );