mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
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
This commit is contained in:
parent
33398fa4f1
commit
60fa118955
@ -87,7 +87,6 @@ asyncTest( "#7415: Incorrect revert animation with axis: 'y'", function() {
|
|||||||
element = $( "#sortable" ).sortable( {
|
element = $( "#sortable" ).sortable( {
|
||||||
axis: "y",
|
axis: "y",
|
||||||
revert: true,
|
revert: true,
|
||||||
stop: start,
|
|
||||||
sort: function() {
|
sort: function() {
|
||||||
expectedLeft = item.css( "left" );
|
expectedLeft = item.css( "left" );
|
||||||
}
|
}
|
||||||
@ -103,6 +102,7 @@ asyncTest( "#7415: Incorrect revert animation with axis: 'y'", function() {
|
|||||||
var top = parseFloat( item.css( "top" ) );
|
var top = parseFloat( item.css( "top" ) );
|
||||||
equal( item.css( "left" ), expectedLeft, "left not animated" );
|
equal( item.css( "left" ), expectedLeft, "left not animated" );
|
||||||
ok( top > 0 && top < 300, "top is animated" );
|
ok( top > 0 && top < 300, "top is animated" );
|
||||||
|
start();
|
||||||
}, 100 );
|
}, 100 );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user