From: Leonardo Balter Date: Tue, 27 Oct 2015 16:33:44 +0000 (-0400) Subject: Tests: Fix improper async sortable test X-Git-Tag: 1.12.0-beta.1~24 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=60fa118955aab65e66995454f4e7b228a49c4177;p=jquery-ui.git 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 --- diff --git a/tests/unit/sortable/options.js b/tests/unit/sortable/options.js index cdb932af3..ba3a70d99 100644 --- a/tests/unit/sortable/options.js +++ b/tests/unit/sortable/options.js @@ -87,7 +87,6 @@ asyncTest( "#7415: Incorrect revert animation with axis: 'y'", function() { element = $( "#sortable" ).sortable( { axis: "y", revert: true, - stop: start, sort: function() { expectedLeft = item.css( "left" ); } @@ -103,6 +102,7 @@ asyncTest( "#7415: Incorrect revert animation with axis: 'y'", function() { var top = parseFloat( item.css( "top" ) ); equal( item.css( "left" ), expectedLeft, "left not animated" ); ok( top > 0 && top < 300, "top is animated" ); + start(); }, 100 ); } );