]> source.dussan.org Git - jquery-ui.git/commitdiff
tests draggable #2965 - fixed to account for distance: 1 default
authorRichard Worth <rdworth@gmail.com>
Thu, 26 Jun 2008 10:20:48 +0000 (10:20 +0000)
committerRichard Worth <rdworth@gmail.com>
Thu, 26 Jun 2008 10:20:48 +0000 (10:20 +0000)
tests/draggable.js

index 452faf8cb159b193ec8398eacf7bfaa0f0349b5e..9234b35673b0c58307d9e761e6036e0e6ec526de 100644 (file)
@@ -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);