allback);
    animationFrame.run(callback);
    requestAnimationFrame(function() {
      assert.isTrue(callback.calledTwice);
      done();
    });
  });

  test('All queued functions are run.', function(done) {
    var callback1 = sinon.spy();
    var callback2 = sinon.spy();
    animationFrame.run(callback1);
    animationFrame.run(callback2);
    requestAnimationFrame(function() {
      assert.isTrue(callback1.calledOnce);
      assert.isTrue(callback2.calledOnce);
      done();
    });
  });

});

suite