haikuwebkit/LayoutTests/fast/dom/timer-increase-min-interval...

33 lines
763 B
HTML

<html>
<head>
<script>
function log(msg) {
var element = document.createElement("div");
element.textContent = msg;
document.body.appendChild(element);
document.body.appendChild(document.createElement("br"));
}
function runTest() {
if (!window.testRunner) {
log("This test requires the LayoutTestController");
return;
}
testRunner.dumpAsText();
// Make timers run no more often than twice a second.
internals.settings.setMinimumTimerInterval(0.5);
// Part 2 of this test (which will likely be executed immediately
// after this one by the harness) verifies that the minimum timer
// interval is reset between tests.
log("PASS");
}
</script>
</head>
<body onload="runTest()">
</body>
</html>