]> source.dussan.org Git - jquery-ui.git/commitdiff
Sortable Tests: Fix IE7 Test fails by being more generous with dragging near borders.
authorMike Sherov <mike.sherov@gmail.com>
Sun, 31 Mar 2013 16:06:28 +0000 (12:06 -0400)
committerMike Sherov <mike.sherov@gmail.com>
Sun, 31 Mar 2013 16:07:01 +0000 (12:07 -0400)
tests/unit/sortable/sortable_options.js

index 9a072332d506ee67e2a24e12d2c99dcf135cf5b7..f0185b078b0c41217e13a13d6700f50c30323ab9 100644 (file)
@@ -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
        });
 });