aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLeonardo Balter <leonardo.balter@gmail.com>2015-10-27 12:33:44 -0400
committerScott González <scott.gonzalez@gmail.com>2015-10-27 13:55:55 -0400
commit60fa118955aab65e66995454f4e7b228a49c4177 (patch)
tree121b23a106ddb65deed401df1564924ad9ec605d /tests
parent33398fa4f1ee33473cc6c190b2b1d38c11b8c38b (diff)
downloadjquery-ui-60fa118955aab65e66995454f4e7b228a49c4177.tar.gz
jquery-ui-60fa118955aab65e66995454f4e7b228a49c4177.zip
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
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/sortable/options.js2
1 files changed, 1 insertions, 1 deletions
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 );
} );