aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/sortable/helper.js
blob: 61de63ae97ce527932770aab30294fb73e72ed47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 );
	}
} );

} );