diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2012-12-08 21:27:37 -0500 |
---|---|---|
committer | Mike Sherov <mike.sherov@gmail.com> | 2012-12-08 21:27:37 -0500 |
commit | 9f764467751c1c5bdefa28421807eafc9868b37f (patch) | |
tree | 3f62748637c07900fb5b4b66b9a3d9197bafc456 /tests/unit/dialog | |
parent | 5dee8dee309564626393e1871991aa2a0e58dd74 (diff) | |
download | jquery-ui-9f764467751c1c5bdefa28421807eafc9868b37f.tar.gz jquery-ui-9f764467751c1c5bdefa28421807eafc9868b37f.zip |
Dev: remove unnecessary simulated drag delegation in test suite
Diffstat (limited to 'tests/unit/dialog')
-rw-r--r-- | tests/unit/dialog/dialog_test_helpers.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/unit/dialog/dialog_test_helpers.js b/tests/unit/dialog/dialog_test_helpers.js index bbf43f48f..ef0b9b6fa 100644 --- a/tests/unit/dialog/dialog_test_helpers.js +++ b/tests/unit/dialog/dialog_test_helpers.js @@ -3,10 +3,9 @@ TestHelpers.dialog = { var d = el.dialog('widget'); //this mouseover is to work around a limitation in resizable //TODO: fix resizable so handle doesn't require mouseover in order to be used - $(handle, d).simulate("mouseover"); - $(handle, d).simulate("drag", { - dx: dx || 0, - dy: dy || 0 + $( handle, d ).simulate("mouseover").simulate( "drag", { + dx: dx, + dy: dy }); }, testDrag: function(el, dx, dy, expectedDX, expectedDY, msg) { |