aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2008-06-26 10:20:48 +0000
committerRichard Worth <rdworth@gmail.com>2008-06-26 10:20:48 +0000
commit0f0fb77a9e4f71ce1e12567ca7b99e31fada7018 (patch)
treec4d333952edd1b309c156bc1c93c0ebd73d442eb
parent980fbbea512dd25be499fdb2449f19445c420cc4 (diff)
downloadjquery-ui-0f0fb77a9e4f71ce1e12567ca7b99e31fada7018.tar.gz
jquery-ui-0f0fb77a9e4f71ce1e12567ca7b99e31fada7018.zip
tests draggable #2965 - fixed to account for distance: 1 default
-rw-r--r--tests/draggable.js4
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);