diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2013-03-31 12:06:28 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2013-04-17 15:07:03 -0400 |
commit | 90e97320324f8a769399874c7a54944fcaa125e1 (patch) | |
tree | 32c6ad86a07c389eea9eee0eee6e026c37441d2e /tests | |
parent | ff2fe5bc94420613ea685d129098e27eb8c65bcb (diff) | |
download | jquery-ui-90e97320324f8a769399874c7a54944fcaa125e1.tar.gz jquery-ui-90e97320324f8a769399874c7a54944fcaa125e1.zip |
Sortable Tests: Fix IE7 Test fails by being more generous with dragging near borders.(cherry picked from commit bbb53df27d357376c7941251b027cdb7f1f453d5)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/sortable/sortable_options.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/unit/sortable/sortable_options.js b/tests/unit/sortable/sortable_options.js index 9a072332d..f0185b078 100644 --- a/tests/unit/sortable/sortable_options.js +++ b/tests/unit/sortable/sortable_options.js @@ -136,15 +136,18 @@ test( "#8792: issues with floated items in connected lists", function() { element = $( "#qunit-fixture li:eq(0)" ); + // move the first li to the right of the second li in the first ul element.simulate( "drag", { - dx: 51, + dx: 55, moves: 15 }); equal( changeCount, 1, "change fired only once (no jitters) when dragging a floated sortable in it's own container" ); + // move the first li ( which is now in the second spot ) + // through the first spot in the second ul to the second spot in the second ul element.simulate( "drag", { - dx: 50, + dx: 100, moves: 15 }); @@ -173,8 +176,7 @@ test( "#8301: single axis with connected list", function() { element.find( "li" ).eq( 0 ).simulate( "drag", { handle: "corner", - dx: -1, - dy: 114, + dy: 120, moves: 1 }); }); |