1<!doctype html> 2<title>Negative timeout in setInterval</title> 3<script src="/resources/testharness.js"></script> 4<script src="/resources/testharnessreport.js"></script> 5<script> 6var i = 0; 7var interval; 8function next() { 9 i++; 10 if (i === 20) { 11 clearInterval(interval); 12 done(); 13 } 14} 15setTimeout(assert_unreached, 1000); 16interval = setInterval(next, -100); 17</script> 18