Skip to content

Commit d632699

Browse files
committed
Offset: fix iframe scrollTop/Left test for IE8
Ref ae30fb6
1 parent dac716c commit d632699

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/unit/offset.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,7 @@ test("iframe scrollTop/Left (see gh-1945)", function() {
554554
var ifDoc = jQuery( "#iframe" )[ 0 ].contentDocument;
555555
jQuery( "#iframe" ).css( "width", "50px" ).css( "height", "50px" );
556556
ifDoc.write( "<div style='width: 1000px; height: 1000px;'></div>" );
557+
ifDoc.close();
557558

558559
jQuery( ifDoc ).scrollTop( 200 );
559560
jQuery( ifDoc ).scrollLeft( 500 );

0 commit comments

Comments
 (0)