One of the changes is increasing `revertDuration` from 200 to 300. For some
reason, when jQuery 3.1 is used in an iframe (which TestSwarm uses) the timings
are lower than expected and `setTimeout` too slow and the check for animation
happens too late.
Closes gh-2230
} );
QUnit.test( "revert and revertDuration", function( assert ) {
- var ready = assert.async();
+ var ready = assert.async( 2 );
assert.expect( 7 );
var element = $( "#draggable2" ).draggable( {
$( "#draggable2" ).draggable( "option", {
revert: true,
- revertDuration: 200,
+ revertDuration: 300,
stop: function() {
ready();
}
testHelper.move( element, 50, 50 );
setTimeout( function() {
assert.ok( $( "#draggable2" ).is( ":animated" ), "revert: true with revertDuration should animate" );
+ ready();
} );
} );