From f1df9a81c988dc1e2bb7ab3332e96f9537e72955 Mon Sep 17 00:00:00 2001 From: Leonardo Balter Date: Tue, 27 Oct 2015 12:33:44 -0400 Subject: 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 60fa118955aab65e66995454f4e7b228a49c4177) --- tests/unit/sortable/sortable_options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/sortable/sortable_options.js b/tests/unit/sortable/sortable_options.js index 90cf765a2..235dec9c6 100644 --- a/tests/unit/sortable/sortable_options.js +++ b/tests/unit/sortable/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 ); }); -- cgit v1.2.3