diff options
Diffstat (limited to 'test/unit/offset.js')
-rw-r--r-- | test/unit/offset.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/offset.js b/test/unit/offset.js index 50eee3dd5..a62ebde5b 100644 --- a/test/unit/offset.js +++ b/test/unit/offset.js @@ -4,7 +4,7 @@ if ( !includesModule( "offset" ) ) { return; } -var supportsScroll, alwaysScrollable, +var alwaysScrollable, forceScroll = supportjQuery( "<div></div>" ).css( { width: 2000, height: 2000 } ), checkSupport = function( assert ) { @@ -14,7 +14,7 @@ var supportsScroll, alwaysScrollable, // Append forceScroll to the body instead of #qunit-fixture because the latter is hidden forceScroll.appendTo( "body" ); window.scrollTo( 200, 200 ); - supportsScroll = document.documentElement.scrollTop || document.body.scrollTop; + window.supportsScroll = document.documentElement.scrollTop || document.body.scrollTop; forceScroll.detach(); // Support: iOS <=7 - 12+ |