<script>
// Note: Closing the main window affects the web_tests logic when switching
// from one test to the next one. To reproduce a crash, it was necessary to
// have multiple tests enqueued.
if (testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
setTimeout(() => {
testRunner.notifyDone();
setTimeout(close, 0);
}, 50)
}
</script>