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

  function doSomething() {
    console.log("We are doing something here");
    clearInterval(interval);
  }

  interval = setInterval(doSomething, 1);
  </script>
</head>
<body>
  <h1>A page with a setInterval() call</h1>
</body>
</html>