diff options
Diffstat (limited to 'tests/unit/sortable/helper.js')
-rw-r--r-- | tests/unit/sortable/helper.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/unit/sortable/helper.js b/tests/unit/sortable/helper.js new file mode 100644 index 000000000..76545022e --- /dev/null +++ b/tests/unit/sortable/helper.js @@ -0,0 +1,16 @@ +define( [ + "jquery", + "lib/helper" +], function( $, helper ) { + +return $.extend( helper, { + sort: function( handle, dx, dy, index, msg ) { + $( handle ).simulate( "drag", { + dx: dx, + dy: dy + }); + equal( $( handle ).parent().children().index( handle ), index, msg ); + } +} ); + +} ); |