diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2013-10-19 11:12:35 -0400 |
---|---|---|
committer | Mike Sherov <mike.sherov@gmail.com> | 2013-10-19 18:48:04 -0400 |
commit | 67fd40eda7a7f4a9e48afe09593c20bd0e0f9c6f (patch) | |
tree | e6ef0d4af2236b17128f6fdd5571dbae1a0332dd /tests/unit/selectable | |
parent | 52307ebadbca3f403549140e1d34f08bc07bf8ce (diff) | |
download | jquery-ui-67fd40eda7a7f4a9e48afe09593c20bd0e0f9c6f.tar.gz jquery-ui-67fd40eda7a7f4a9e48afe09593c20bd0e0f9c6f.zip |
Tests: extract TestHelpers.forceScrollableWindow for tests that need the window to scroll
Diffstat (limited to 'tests/unit/selectable')
-rw-r--r-- | tests/unit/selectable/selectable_events.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/unit/selectable/selectable_events.js b/tests/unit/selectable/selectable_events.js index ae35fa3ce..2cb99f49c 100644 --- a/tests/unit/selectable/selectable_events.js +++ b/tests/unit/selectable/selectable_events.js @@ -40,12 +40,8 @@ test( "mousedown: initial position of helper", function() { var helperOffset, element = $( "#selectable1" ).selectable(), - contentToForceScroll = $( "<div>" ).css({ - height: "10000px", - width: "10000px" - }); + contentToForceScroll = TestHelpers.forceScrollableWindow( "body" ); - contentToForceScroll.appendTo( "body" ); $( window ).scrollTop( 100 ).scrollLeft( 100 ); element.simulate( "mousedown", { |