Skip to content

Commit bbb53df

Browse files
committed
Sortable Tests: Fix IE7 Test fails by being more generous with dragging near borders.
1 parent 384f181 commit bbb53df

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/unit/sortable/sortable_options.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,18 @@ test( "#8792: issues with floated items in connected lists", function() {
136136

137137
element = $( "#qunit-fixture li:eq(0)" );
138138

139+
// move the first li to the right of the second li in the first ul
139140
element.simulate( "drag", {
140-
dx: 51,
141+
dx: 55,
141142
moves: 15
142143
});
143144

144145
equal( changeCount, 1, "change fired only once (no jitters) when dragging a floated sortable in it's own container" );
145146

147+
// move the first li ( which is now in the second spot )
148+
// through the first spot in the second ul to the second spot in the second ul
146149
element.simulate( "drag", {
147-
dx: 50,
150+
dx: 100,
148151
moves: 15
149152
});
150153

@@ -173,8 +176,7 @@ test( "#8301: single axis with connected list", function() {
173176

174177
element.find( "li" ).eq( 0 ).simulate( "drag", {
175178
handle: "corner",
176-
dx: -1,
177-
dy: 114,
179+
dy: 120,
178180
moves: 1
179181
});
180182
});

0 commit comments

Comments
 (0)