From 0f0fb77a9e4f71ce1e12567ca7b99e31fada7018 Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Thu, 26 Jun 2008 10:20:48 +0000 Subject: [PATCH] tests draggable #2965 - fixed to account for distance: 1 default --- tests/draggable.js | 4 ++-- 1 file 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);