From: Oleg Gaidarenko Date: Wed, 24 Dec 2014 01:24:59 +0000 (+0300) Subject: Offset: fix iframe scrollTop/Left test for IE8 X-Git-Tag: 3.0.0-alpha1+compat~162 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d632699c6b2b1b06dd7cbdec982d930f59fd8119;p=jquery.git Offset: fix iframe scrollTop/Left test for IE8 Ref ae30fb6c27a2121578d3ce7ca6e2ba1d205545b8 --- 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 );