browser/devtools/webconsole/test/test-console-count.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/devtools/webconsole/test/test-console-count.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,56 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html dir="ltr" xml:lang="en-US" lang="en-US">
     1.6 +  <head>
     1.7 +    <!--
     1.8 +      Any copyright is dedicated to the Public Domain.
     1.9 +      http://creativecommons.org/publicdomain/zero/1.0/
    1.10 +    -->
    1.11 +    <meta charset="utf-8">
    1.12 +    <title>console.count() test</title>
    1.13 +    <script src="test-console-count-external-file.js"></script>
    1.14 +    <script tyoe="text/javascript">
    1.15 +      function counterSeperateScriptTag() {
    1.16 +        console.count("console.count() testcounter");
    1.17 +      }
    1.18 +    </script>
    1.19 +    <script type="text/javascript">
    1.20 +      function counterNoLabel() {
    1.21 +        console.count();
    1.22 +      }
    1.23 +      function countersWithoutLabel() {
    1.24 +        console.count();
    1.25 +        console.count();
    1.26 +      }
    1.27 +      function counterWithLabel() {
    1.28 +        console.count("console.count() testcounter");
    1.29 +      }
    1.30 +      function testLocal() {
    1.31 +        console.log("start");
    1.32 +        counterNoLabel();
    1.33 +        counterNoLabel();
    1.34 +        countersWithoutLabel();
    1.35 +        counterWithLabel();
    1.36 +        counterWithLabel();
    1.37 +        counterSeperateScriptTag();
    1.38 +        counterSeperateScriptTag();
    1.39 +        console.log("end");
    1.40 +      }
    1.41 +      function testExternal() {
    1.42 +        console.log("start");
    1.43 +        counterExternalFile();
    1.44 +        counterExternalFile();
    1.45 +        externalCountersWithoutLabel();
    1.46 +        console.log("end");
    1.47 +      }
    1.48 +    </script>
    1.49 +  </head>
    1.50 +  <body>
    1.51 +    <p>test console.count()</p>
    1.52 +    <button id="local" onclick="testLocal();">
    1.53 +      test local console.count() calls
    1.54 +    </button>
    1.55 +    <button id="external" onclick="testExternal();">
    1.56 +      test external console.count() calls
    1.57 +    </button>
    1.58 +  </body>
    1.59 +</html>

mercurial