jquery-ui/tests/unit/sortable/helper.js
2016-04-14 00:14:57 +05:30

17 lines
301 B
JavaScript

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 );
}
} );
} );