summaryrefslogtreecommitdiffstats
path: root/dom/base/test/file_timer_flood.html
blob: dc729d7e421435006e01fbb1f3ed78df2114c7d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE HTML>
<html>
<body>
<script>
let count = 0;
function cb() {
  count += 1;
  // Notify our parent that we are ready once the timer flood has
  // warmed up.
  if (count === 10000) {
    window.parent.postMessage('STARTED', '*');
  }
  setTimeout(cb, 0);
  setTimeout(cb, 0);
}
addEventListener('load', cb);
</script>
</body>
</html>