| 1 | define( [ |
| 2 | "qunit", |
| 3 | "jquery", |
| 4 | "lib/helper" |
| 5 | ], function( QUnit, $, helper ) { |
| 6 | "use strict"; |
| 7 | |
| 8 | return $.extend( helper, { |
| 9 | drag: function( el, dx, dy ) { |
| 10 | |
| 11 | // This mouseover is to work around a limitation in resizable |
| 12 | // TODO: fix resizable so handle doesn't require mouseover in order to be used |
| 13 | $( el ).simulate( "mouseover" ).simulate( "drag", { |
| 14 | moves: 2, |
| 15 | dx: dx, |
| 16 | dy: dy |
| 17 | } ); |
| 18 | } |
| 19 | } ); |
| 20 | |
| 21 | } ); |