Skip to content
Permalink
Browse files

tests draggable #2965 - fixed to account for distance: 1 default

  • Loading branch information
rdworth committed Jun 26, 2008
1 parent 980fbbe commit 0f0fb77a9e4f71ce1e12567ca7b99e31fada7018
Showing with 2 additions and 2 deletions.
  1. +2 −2 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);

0 comments on commit 0f0fb77

Please sign in to comment.
You can’t perform that action at this time.