From 0a1be437ff78d957e32d8493287c1041fed8cbb7 Mon Sep 17 00:00:00 2001 From: Corey Frang Date: Wed, 25 Jul 2012 21:33:48 -0500 Subject: [PATCH] Adding a check for double progress call in effects units --- test/unit/effects.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/unit/effects.js b/test/unit/effects.js index 806192ea0..4353e1566 100644 --- a/test/unit/effects.js +++ b/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++; -- 2.39.5