diff options
author | Corey Frang <gnarf@gnarf.net> | 2012-07-25 21:33:48 -0500 |
---|---|---|
committer | Corey Frang <gnarf@gnarf.net> | 2012-07-25 21:33:58 -0500 |
commit | 0a1be437ff78d957e32d8493287c1041fed8cbb7 (patch) | |
tree | 66f05e71dfd8ed5b18511530cb64b025d816366e /test/unit/effects.js | |
parent | 155855b2a9bd95219871210ae7dcacd2a5f7e117 (diff) | |
download | jquery-0a1be437ff78d957e32d8493287c1041fed8cbb7.tar.gz jquery-0a1be437ff78d957e32d8493287c1041fed8cbb7.zip |
Adding a check for double progress call in effects units
Diffstat (limited to 'test/unit/effects.js')
-rw-r--r-- | test/unit/effects.js | 4 |
1 files changed, 4 insertions, 0 deletions
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++; |