5 // Let the test page know that it can try to navigate.
6 top
.postMessage("onload", "*");
7 // We're starting an infinite loop, but we need to time out after a
8 // while, or the loop will keep running until shutdown.
9 let t0
= performance
.now();
10 while (performance
.now() - t0
< 5000) {
11 document
.getElementById("output").innerText
= Math
.random();
16 <body onload=
"load()">