summaryrefslogtreecommitdiffstats
path: root/devtools/client/webconsole/test/browser/test-time-methods.html
blob: 942065de577a1782cb4f8cab6ce96d09ca41c537 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html>
<!-- Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ -->
  <head>
    <meta charset="utf-8">
    <title>Test for bug 658368: Expand console object with time and timeEnd
      methods</title>
  </head>
  <body>
    <h1>Test for bug 658368: Expand console object with time and timeEnd
      methods</h1>

    <script type="text/javascript">
      /* eslint-disable */
      function foo() {
        console.timeEnd("aTimer");
      }
      console.time("aTimer");
      foo();
      console.time("bTimer");
    </script>
  </body>
</html>