aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/selectable/selectable_events.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/selectable/selectable_events.js')
-rw-r--r--tests/unit/selectable/selectable_events.js6
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", {