mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Draggable Tests: Fix snap test failures in IE8
This commit is contained in:
parent
dd16205a3f
commit
5a04d237dd
@ -1113,7 +1113,7 @@ test( "snap, snapMode, and snapTolerance", function() {
|
|||||||
left: 1
|
left: 1
|
||||||
});
|
});
|
||||||
|
|
||||||
newX = element2.offset().left - element.outerWidth() - snapTolerance - 1;
|
newX = element2.offset().left - element.outerWidth() - snapTolerance - 2;
|
||||||
newY = element2.offset().top;
|
newY = element2.offset().top;
|
||||||
|
|
||||||
element.simulate( "drag", {
|
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" );
|
deepEqual( element.offset(), { top: newY, left: newX }, "doesn't snap outside the snapTolerance" );
|
||||||
|
|
||||||
newX += 2;
|
newX += 3;
|
||||||
|
|
||||||
element.simulate( "drag", {
|
element.simulate( "drag", {
|
||||||
handle: "corner",
|
handle: "corner",
|
||||||
|
Loading…
Reference in New Issue
Block a user