summaryrefslogtreecommitdiffstats
path: root/devtools/client/webconsole/test/test-bug-658368-time-methods.html
blob: cc50b631345f5f74d159cdfa33db7a05b2174a87 (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">
      function foo() {
        console.timeEnd("aTimer");
      }
      console.time("aTimer");
      foo();
      console.time("bTimer");
    </script>
  </body>
</html>