mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
352 B
17 lines
352 B
/*
|
|
* A few basic tests
|
|
*/
|
|
|
|
var count = 0;
|
|
var intervalId;
|
|
|
|
setTimeout(function () { print('timer 1'); }, 1234);
|
|
setTimeout('print("timer 2");', 4321);
|
|
setTimeout(function () { print('timer 3'); }, 2345);
|
|
intervalId = setInterval(function () {
|
|
print('interval', ++count);
|
|
if (count >= 10) {
|
|
clearInterval(intervalId);
|
|
}
|
|
}, 400);
|
|
|
|
|