jquery-ui/tests/unit/sortable/helper.js

17 lines
301 B
JavaScript
Raw Permalink Normal View History

define( [
"jquery",
"lib/helper"
], function( $, helper ) {
return $.extend( helper, {
2016-04-06 13:22:59 +00:00
sort: function( assert, handle, dx, dy, index, msg ) {
$( handle ).simulate( "drag", {
dx: dx,
dy: dy
2015-08-24 12:57:53 +00:00
} );
2016-04-06 13:22:59 +00:00
assert.equal( $( handle ).parent().children().index( handle ), index, msg );
}
} );
} );