Skip to content

Commit 60fa118

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 jquerygh-1630
1 parent 33398fa commit 60fa118

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/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)