mirror of
https://github.com/jquery/jquery.git
synced 2026-01-25 04:47:55 -05:00
Adding a check for double progress call in effects units
This commit is contained in:
4
test/unit/effects.js
vendored
4
test/unit/effects.js
vendored
@@ -1770,6 +1770,10 @@ asyncTest("Animation callbacks (#11797)", 15, function() {
|
||||
ok( true, "async: start" );
|
||||
},
|
||||
progress: function( anim, percent ) {
|
||||
// occasionally the progress handler is called twice in first frame.... *shrug*
|
||||
if ( percent === 0 && expectedProgress === 1 ) {
|
||||
return;
|
||||
}
|
||||
equal( percent, expectedProgress, "async: progress " + expectedProgress );
|
||||
// once at 0, once at 1
|
||||
expectedProgress++;
|
||||
|
||||
Reference in New Issue
Block a user