diff options
author | Richard Worth <rdworth@gmail.com> | 2008-06-26 10:20:48 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2008-06-26 10:20:48 +0000 |
commit | 0f0fb77a9e4f71ce1e12567ca7b99e31fada7018 (patch) | |
tree | c4d333952edd1b309c156bc1c93c0ebd73d442eb | |
parent | 980fbbea512dd25be499fdb2449f19445c420cc4 (diff) | |
download | jquery-ui-0f0fb77a9e4f71ce1e12567ca7b99e31fada7018.tar.gz jquery-ui-0f0fb77a9e4f71ce1e12567ca7b99e31fada7018.zip |
tests draggable #2965 - fixed to account for distance: 1 default
-rw-r--r-- | tests/draggable.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/draggable.js b/tests/draggable.js index 452faf8cb..9234b3567 100644 --- a/tests/draggable.js +++ b/tests/draggable.js @@ -467,7 +467,7 @@ test("#2965 cursorAt with margin", function() { var before = el.offset(); var pos = { clientX: before.left + ox, clientY: before.top + oy }; $("#draggable2").simulate("mousedown", pos); - $(document).simulate("mousemove", pos); + $(document).simulate("mousemove", { clientX: pos.clientX + 1, clientY: pos.clientY + 1}); $(document).simulate("mousemove", pos); $("#draggable2").simulate("mouseup", pos); var expected = actual; @@ -479,7 +479,7 @@ test("#2965 cursorAt with margin", function() { var before = el.offset(); var pos = { clientX: before.left + ox - marg, clientY: before.top + oy - marg }; $("#draggable2").simulate("mousedown", pos); - $(document).simulate("mousemove", pos); + $(document).simulate("mousemove", { clientX: pos.clientX + 1, clientY: pos.clientY + 1}); $(document).simulate("mousemove", pos); $("#draggable2").simulate("mouseup", pos); |