corrade-http-templates
/instantMessage/node_modules/jquery-ui/tests/unit/sortable/helper.js |
---|
@@ -0,0 +1,16 @@ |
define( [ |
"jquery", |
"lib/helper" |
], function( $, helper ) { |
return $.extend( helper, { |
sort: function( assert, handle, dx, dy, index, msg ) { |
$( handle ).simulate( "drag", { |
dx: dx, |
dy: dy |
} ); |
assert.equal( $( handle ).parent().children().index( handle ), index, msg ); |
} |
} ); |
} ); |