+ var origRepeatAndCleanup;
+
+ beforeEach(function() {
+ // A "fast" version of repeatAndCleanup
+ origRepeatAndCleanup = utils.repeatAndCleanup;
+ // utils.repeatAndCleanup = function(repeatFn, maxFrames, framePeriodInMillis, cleanupFn) {
+ // repeatFn(0);
+ // if (maxFrames > 1) repeatFn(maxFrames - 1);
+ // cleanupFn();
+ // };
+ });
+
+ afterEach(function() {
+ utils.repeatAndCleanup = origRepeatAndCleanup;
+ });
+