browser/devtools/webconsole/test/test-console-api-stackframe.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-api-stackframe.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,32 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html dir="ltr" lang="en">
     1.6 +  <head>
     1.7 +    <meta charset="utf8">
     1.8 +    <!--
     1.9 +    - Any copyright is dedicated to the Public Domain.
    1.10 +    - http://creativecommons.org/publicdomain/zero/1.0/
    1.11 +    -->
    1.12 +    <title>Test for bug 920116 - stacktraces for console API messages</title>
    1.13 +    <script>
    1.14 +      function firstCall() {
    1.15 +        secondCall();
    1.16 +      }
    1.17 +
    1.18 +      function secondCall() {
    1.19 +        thirdCall();
    1.20 +      }
    1.21 +
    1.22 +      function thirdCall() {
    1.23 +        console.log("foo-log");
    1.24 +        console.error("foo-error");
    1.25 +        console.exception("foo-exception");
    1.26 +        console.assert("red" == "blue", "foo-assert");
    1.27 +      }
    1.28 +
    1.29 +      window.onload = firstCall;
    1.30 +    </script>
    1.31 +  </head>
    1.32 +  <body>
    1.33 +    <p>Hello world!</p>
    1.34 +  </body>
    1.35 +</html>

mercurial