Skip to content

Commit 0a1be43

Browse files
committed
Adding a check for double progress call in effects units
1 parent 155855b commit 0a1be43

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/unit/effects.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,6 +1770,10 @@ asyncTest("Animation callbacks (#11797)", 15, function() {
17701770
ok( true, "async: start" );
17711771
},
17721772
progress: function( anim, percent ) {
1773+
// occasionally the progress handler is called twice in first frame.... *shrug*
1774+
if ( percent === 0 && expectedProgress === 1 ) {
1775+
return;
1776+
}
17731777
equal( percent, expectedProgress, "async: progress " + expectedProgress );
17741778
// once at 0, once at 1
17751779
expectedProgress++;

0 commit comments

Comments
 (0)