Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/webappapis/timers/negative-setinterval.any.html - WPT Dashboard Interop Dashboard
- /html/webappapis/timers/negative-setinterval.any.worker.html - WPT Dashboard Interop Dashboard
setup({ single_test: true });
var i = 0;
var interval;
function next() {
i++;
if (i === 20) {
clearInterval(interval);
done();
}
}
setTimeout(assert_unreached, 1000);
interval = setInterval(next, -100);