aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/resizable/resizable_test_helpers.js
blob: fe6c849006c111466645618b5659f6284d1ecdca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
TestHelpers.resizable = {
	drag: function(el, dx, dy, complete) {

		// speed = sync -> Drag syncrhonously.
		// speed = fast|slow -> Drag asyncrhonously - animated.

		//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");

		return $(el).simulate("drag", {
			dx: dx||0, dy: dy||0, speed: 'sync', complete: complete
		});
	}
};