aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/resizable
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2012-12-08 21:27:37 -0500
committerMike Sherov <mike.sherov@gmail.com>2012-12-08 21:27:37 -0500
commit9f764467751c1c5bdefa28421807eafc9868b37f (patch)
tree3f62748637c07900fb5b4b66b9a3d9197bafc456 /tests/unit/resizable
parent5dee8dee309564626393e1871991aa2a0e58dd74 (diff)
downloadjquery-ui-9f764467751c1c5bdefa28421807eafc9868b37f.tar.gz
jquery-ui-9f764467751c1c5bdefa28421807eafc9868b37f.zip
Dev: remove unnecessary simulated drag delegation in test suite
Diffstat (limited to 'tests/unit/resizable')
-rw-r--r--tests/unit/resizable/resizable_test_helpers.js17
1 files changed, 6 insertions, 11 deletions
diff --git a/tests/unit/resizable/resizable_test_helpers.js b/tests/unit/resizable/resizable_test_helpers.js
index fe6c84900..88f2bc57b 100644
--- a/tests/unit/resizable/resizable_test_helpers.js
+++ b/tests/unit/resizable/resizable_test_helpers.js
@@ -1,15 +1,10 @@
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
+ 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", {
+ dx: dx,
+ dy: dy
});
}
}; \ No newline at end of file