From 06d12bc57121aec8fefae9f02f63cbe513acf851 Mon Sep 17 00:00:00 2001 From: Leonardo Balter Date: Tue, 27 Oct 2015 12:33:44 -0400 Subject: [PATCH] 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. --- tests/unit/sortable/options.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/sortable/options.js b/tests/unit/sortable/options.js index cdb932af3b4..ba3a70d99d2 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 ); } );