aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/sortable/sortable_test_helpers.js
blob: 5f4f8aca69d19c15c0c604d640319e6be40b048f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
define( function() {

return {
	sort: function( handle, dx, dy, index, msg ) {
		$( handle ).simulate( "drag", {
			dx: dx,
			dy: dy
		});
		equal( $( handle ).parent().children().index( handle ), index, msg );
	}
};

} );