browser/devtools/profiler/test/mock_console_api.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/devtools/profiler/test/mock_console_api.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,21 @@
     1.4 +<!-- Any copyright is dedicated to the Public Domain.
     1.5 +     http://creativecommons.org/publicdomain/zero/1.0/ -->
     1.6 +
     1.7 +<!DOCTYPE HTML>
     1.8 +<html>
     1.9 +  <head>
    1.10 +    <meta charset='utf-8'/>
    1.11 +    <title>console.profile from content</title>
    1.12 +  </head>
    1.13 +
    1.14 +  <body>
    1.15 +    <script>
    1.16 +      console.profile();
    1.17 +      var a = new Array(500);
    1.18 +      while (a.length) {
    1.19 +        a.shift();
    1.20 +      }
    1.21 +      console.profileEnd();
    1.22 +    </script>
    1.23 +  </body>
    1.24 +</html>
    1.25 \ No newline at end of file

mercurial