diff options
author | Scott González <scott.gonzalez@gmail.com> | 2015-04-06 14:38:11 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2015-04-09 09:26:26 -0400 |
commit | b8625346f6de6d7533493fc27b24d8acd45aa84c (patch) | |
tree | 3413e800c886284b334b19880d1f9728b44c6c10 /tests/unit/selectable/selectable_events.js | |
parent | 4e7407cd699bcb02cfdd6e28d463831e782233e7 (diff) | |
download | jquery-ui-b8625346f6de6d7533493fc27b24d8acd45aa84c.tar.gz jquery-ui-b8625346f6de6d7533493fc27b24d8acd45aa84c.zip |
Selectable: Convert tests to new infrastructure
Ref #10119
Ref gh-1528
Diffstat (limited to 'tests/unit/selectable/selectable_events.js')
-rw-r--r-- | tests/unit/selectable/selectable_events.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/unit/selectable/selectable_events.js b/tests/unit/selectable/selectable_events.js index 5df7f2f5b..6eb99f325 100644 --- a/tests/unit/selectable/selectable_events.js +++ b/tests/unit/selectable/selectable_events.js @@ -1,7 +1,8 @@ -/* - * selectable_events.js - */ -(function( $ ) { +define( [ + "jquery", + "lib/helper", + "ui/selectable" +], function( $, testHelpers ) { module("selectable: events"); @@ -40,7 +41,7 @@ test( "mousedown: initial position of helper", function() { var helperOffset, element = $( "#selectable1" ).selectable(), - contentToForceScroll = TestHelpers.forceScrollableWindow( "body" ); + contentToForceScroll = testHelpers.forceScrollableWindow( "body" ); $( window ).scrollTop( 100 ).scrollLeft( 100 ); @@ -59,4 +60,4 @@ test( "mousedown: initial position of helper", function() { $( window ).scrollTop( 0 ).scrollLeft( 0 ); }); -})( jQuery ); +} ); |