aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/resizable/helper.js
blob: 0c9c139592ed97aa75c45aa1872361e28344bdb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
define( [
	"qunit",
	"jquery",
	"lib/helper"
], function( QUnit, $, helper ) {
"use strict";

return $.extend( helper, {
	drag: function( el, dx, dy ) {

		// This mouseover is to work around a limitation in resizable
		// TODO: fix resizable so handle doesn't require mouseover in order to be used
		$( el ).simulate( "mouseover" ).simulate( "drag", {
			moves: 2,
			dx: dx,
			dy: dy
		} );
	}
} );

} );