diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2013-03-04 09:58:23 -0500 |
---|---|---|
committer | Mike Sherov <mike.sherov@gmail.com> | 2013-03-04 09:58:23 -0500 |
commit | 5a04d237ddeb9f290ad1293c97a2e823e116fceb (patch) | |
tree | 7dc0e2bba093871379b7e3073c3830240ea9a7cc /tests | |
parent | dd16205a3fe709a19d7a76342d8dd7f960cccace (diff) | |
download | jquery-ui-5a04d237ddeb9f290ad1293c97a2e823e116fceb.tar.gz jquery-ui-5a04d237ddeb9f290ad1293c97a2e823e116fceb.zip |
Draggable Tests: Fix snap test failures in IE8
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/draggable/draggable_options.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/draggable/draggable_options.js b/tests/unit/draggable/draggable_options.js index b996c644c..c000a136b 100644 --- a/tests/unit/draggable/draggable_options.js +++ b/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", |