comparison tests/js-timer/timer-pending.js @ 0:1158cffe5a5e

Initial import
author David Demelier <markand@malikania.fr>
date Mon, 08 Feb 2016 16:43:14 +0100
parents
children 6635b9187d71
comparison
equal deleted inserted replaced
-1:000000000000 0:1158cffe5a5e
1 count = 0;
2
3 function onLoad()
4 {
5 t = new Irccd.Timer(Irccd.Timer.Repeat, 500, function () {
6 count += 1;
7 });
8
9 t.start();
10
11 /* Force the plugin to wait so that timer push some events in the irccd's queue */
12 Irccd.System.sleep(3);
13 t.stop();
14 }