Sha256: 07f838764dae4104642a3bd6b38659a86912e97d6aa84f1d7b4ef043b0da7afd
Contents?: true
Size: 380 Bytes
Versions: 7
Compression:
Stored size: 380 Bytes
Contents
new Test.Unit.Runner({ testPeriodicalExecuterStop: function() { var peEventCount = 0; function peEventFired(pe) { if (++peEventCount > 2) pe.stop(); } // peEventFired will stop the PeriodicalExecuter after 3 callbacks new PeriodicalExecuter(peEventFired, 0.05); this.wait(600, function() { this.assertEqual(3, peEventCount); }); } });
Version data entries
7 entries across 7 versions & 3 rubygems