aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/selectable/events.js
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2015-08-24 08:58:20 -0400
committerAlexander Schmitz <arschmitz@gmail.com>2015-09-11 08:29:08 -0400
commit9a015df3a3ae78abf3cc948259db885cf1d3f753 (patch)
treeaf764e4e3844f39f969d4026ae9c5ead674b3c4a /tests/unit/selectable/events.js
parente583a512d7cc66a2b3d0915db1b0164b9a0a710e (diff)
downloadjquery-ui-9a015df3a3ae78abf3cc948259db885cf1d3f753.tar.gz
jquery-ui-9a015df3a3ae78abf3cc948259db885cf1d3f753.zip
Selectable: Style updates
Ref #14246
Diffstat (limited to 'tests/unit/selectable/events.js')
-rw-r--r--tests/unit/selectable/events.js30
1 files changed, 15 insertions, 15 deletions
diff --git a/tests/unit/selectable/events.js b/tests/unit/selectable/events.js
index 5d4e48996..0e2e1384d 100644
--- a/tests/unit/selectable/events.js
+++ b/tests/unit/selectable/events.js
@@ -4,37 +4,37 @@ define( [
"ui/widgets/selectable"
], function( $, testHelpers ) {
-module("selectable: events");
+module( "selectable: events" );
test( "start", function() {
expect( 2 );
- var el = $("#selectable1");
- el.selectable({
+ var el = $( "#selectable1" );
+ el.selectable( {
start: function() {
ok( true, "drag fired start callback" );
- equal( this, el[0], "context of callback" );
+ equal( this, el[ 0 ], "context of callback" );
}
- });
+ } );
el.simulate( "drag", {
dx: 20,
dy: 20
- });
-});
+ } );
+} );
test( "stop", function() {
expect( 2 );
- var el = $("#selectable1");
- el.selectable({
+ var el = $( "#selectable1" );
+ el.selectable( {
start: function() {
ok( true, "drag fired stop callback" );
- equal( this, el[0], "context of callback" );
+ equal( this, el[ 0 ], "context of callback" );
}
- });
+ } );
el.simulate( "drag", {
dx: 20,
dy: 20
- });
-});
+ } );
+} );
test( "mousedown: initial position of helper", function() {
expect( 2 );
@@ -48,7 +48,7 @@ test( "mousedown: initial position of helper", function() {
element.simulate( "mousedown", {
clientX: 10,
clientY: 10
- });
+ } );
helperOffset = $( ".ui-selectable-helper" ).offset();
ok( helperOffset.top, 110, "Scroll top should be accounted for." );
@@ -58,6 +58,6 @@ test( "mousedown: initial position of helper", function() {
element.simulate( "mouseup" );
contentToForceScroll.remove();
$( window ).scrollTop( 0 ).scrollLeft( 0 );
-});
+} );
} );