Skip to content
Permalink
Browse files

Draggable Tests: Fix snap test failures in IE8

  • Loading branch information
mikesherov committed Mar 4, 2013
1 parent dd16205 commit 5a04d237ddeb9f290ad1293c97a2e823e116fceb
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/unit/draggable/draggable_options.js
@@ -1113,7 +1113,7 @@ test( "snap, snapMode, and snapTolerance", function() {
left: 1
});

newX = element2.offset().left - element.outerWidth() - snapTolerance - 1;
newX = element2.offset().left - element.outerWidth() - snapTolerance - 2;
newY = element2.offset().top;

element.simulate( "drag", {
@@ -1125,7 +1125,7 @@ test( "snap, snapMode, and snapTolerance", function() {

deepEqual( element.offset(), { top: newY, left: newX }, "doesn't snap outside the snapTolerance" );

newX += 2;
newX += 3;

element.simulate( "drag", {
handle: "corner",

0 comments on commit 5a04d23

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