| 1 | define( [ |
| 2 | "jquery", |
| 3 | "lib/helper" |
| 4 | ], function( $, helper ) { |
| 5 | |
| 6 | return $.extend( helper, { |
| 7 | sort: function( assert, handle, dx, dy, index, msg ) { |
| 8 | $( handle ).simulate( "drag", { |
| 9 | dx: dx, |
| 10 | dy: dy |
| 11 | } ); |
| 12 | assert.equal( $( handle ).parent().children().index( handle ), index, msg ); |
| 13 | } |
| 14 | } ); |
| 15 | |
| 16 | } ); |