]> source.dussan.org Git - jquery-ui.git/commitdiff
Tests: Fix improper async sortable test
authorLeonardo Balter <leonardo.balter@gmail.com>
Tue, 27 Oct 2015 16:33:44 +0000 (12:33 -0400)
committerScott González <scott.gonzalez@gmail.com>
Tue, 27 Oct 2015 17:55:55 +0000 (13:55 -0400)
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

tests/unit/sortable/options.js

index cdb932af3b48eeea3316c9246ad3e4b5789e0a12..ba3a70d99d26f66989d58af858948eec3b8c1b4b 100644 (file)
@@ -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 );
 } );