Skip to content

Commit f1df9a8

Browse files
leobalterscottgonzalez
authored andcommitted
Tests: Fix improper async sortable test
Caught when testing jQuery UI against the new QUnit version, where start throws an error if called with a non-numeric error. Closes gh-1630 (cherry picked from commit 60fa118)
1 parent d156f02 commit f1df9a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/sortable/sortable_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ asyncTest( "#7415: Incorrect revert animation with axis: 'y'", function() {
8787
element = $( "#sortable" ).sortable({
8888
axis: "y",
8989
revert: true,
90-
stop: start,
9190
sort: function() {
9291
expectedLeft = item.css( "left" );
9392
}
@@ -103,6 +102,7 @@ asyncTest( "#7415: Incorrect revert animation with axis: 'y'", function() {
103102
var top = parseFloat( item.css( "top" ) );
104103
equal( item.css( "left" ), expectedLeft, "left not animated" );
105104
ok( top > 0 && top < 300, "top is animated" );
105+
start();
106106
}, 100 );
107107
});
108108

0 commit comments

Comments
 (0)