browser/devtools/webconsole/test/test-bug-658368-time-methods.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/devtools/webconsole/test/test-bug-658368-time-methods.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,24 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +<!-- Any copyright is dedicated to the Public Domain.
     1.7 +   http://creativecommons.org/publicdomain/zero/1.0/ -->
     1.8 +  <head>
     1.9 +    <meta charset="utf-8">
    1.10 +    <title>Test for bug 658368: Expand console object with time and timeEnd
    1.11 +      methods</title>
    1.12 +  </head>
    1.13 +  <body>
    1.14 +    <h1>Test for bug 658368: Expand console object with time and timeEnd
    1.15 +      methods</h1>
    1.16 +
    1.17 +    <script type="text/javascript">
    1.18 +      function foo() {
    1.19 +        console.timeEnd("aTimer");
    1.20 +      }
    1.21 +      console.time("aTimer");
    1.22 +      foo();
    1.23 +      console.time("bTimer");
    1.24 +    </script>
    1.25 +  </body>
    1.26 +</html>
    1.27 +

mercurial