summaryrefslogtreecommitdiffstats
path: root/dom/tests/browser/perfmetrics/unresponsive.html
blob: e139eb7f9d86b19526b5d5dcdc95a58b6d104d5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
  <meta charset="utf-8">
  <script type="text/javascript">

  function fn() {
    let start = Date.now();
    while (Date.now() - start < 5000)
      ; // do nothing
    setTimeout(fn, 0);
  }

  setTimeout(fn, 10);

  </script>
</head>
<body>
  <h1>An unresponsive page</h1>
</body>
</html>