comparison tests/data/timer.js @ 963:371e1cc2c697

tests: add 80% of the Javascript API
author David Demelier <markand@malikania.fr>
date Thu, 28 Jan 2021 14:20:58 +0100
parents
children
comparison
equal deleted inserted replaced
962:63208f5bb0f6 963:371e1cc2c697
1 count = 0;
2
3 function onLoad()
4 {
5 if (typeof (type) === "undefined")
6 throw Error("global timer type not defined");
7
8 t = new Irccd.Timer(type, 50, function () {
9 count += 1;
10 });
11
12 t.start();
13 }