Skip to content
Permalink
Browse files

Adding a check for double progress call in effects units

  • Loading branch information...
gnarf committed Jul 26, 2012
1 parent 155855b commit 0a1be437ff78d957e32d8493287c1041fed8cbb7
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/unit/effects.js
@@ -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++;

0 comments on commit 0a1be43

Please sign in to comment.
You can’t perform that action at this time.