aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/sortable/sortable_test_helpers.js
blob: 12e4829ea2c053ebc89ef1c310f4735b188098f9 (plain)
1
2
3
4
5
6
7
8
9
TestHelpers.sortable = {
	sort: function( handle, dx, dy, index, msg ) {
		$( handle ).simulate( "drag", {
			dx: dx,
			dy: dy
		});
		equal( $( handle ).parent().children().index( handle ), index, msg );
	}
};