blob: 5a59a2e21bdf30d52bf6c0f971d834ecc1ac70cd [file]
<!DOCTYPE html>
<html>
<body>
<script>
onmessage = (event) => {
for (let timeout of event.data.timeouts) {
setTimeout(() => {
let now = performance.now();
while (performance.now() < now + 10);
top.postMessage({'step': 'timerFired', 'timeout': timeout}, '*');
}, timeout);
}
top.postMessage({'step': 'scheduledTimers'}, '*');
};
</script>
</body>
</html>