inon.spy();
    var callback3 = sinon.spy();
    var asyncRef1 = idlePeriod.run(callback1, 50);
    idlePeriod.run(callback2, 50);
    var asyncRef3 = idlePeriod.run(callback3, 200);
    idlePeriod.cancel(asyncRef1);
    idlePeriod.cancel(asyncRef3);
    whenIdle(function() {
      assert.isFalse(callback1.called);
      assert.isTrue(callback2.calledOnce);
      assert.isFalse(callback3.called);
      done();
    });
  });

});
</script>
</body>
</html>
