blob: a76e2bf86cdd21737bd91b26b87fab24f835d35c [file] [log] [blame]
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
function log(msg) {
document.getElementById("logger").innerHTML += msg + "<br>";
}
window.onload = function() {
try {
for( var i = 0; i < 100000; ++i ) {
history.pushState(0, 0, i.toString());
log("Successfully added item: " + i);
}
} catch (e) {
log(e);
}
if (window.testRunner)
testRunner.notifyDone();
log("Test complete");
}
</script>
<body>
Test should complete quickly and not crash.<br>
<div id="logger"></div>
</body>