devtools/client/webconsole/old/test/test-console-api-stackframe.html
author Nicolas Chevobbe <nchevobbe@mozilla.com>
Fri, 06 Apr 2018 08:02:58 +0200
changeset 468414 7f2dd66c6d54f0661ae4126014236e13e8cb1e91
parent 298729 devtools/client/webconsole/test/test-console-api-stackframe.html@3b90d45a2bbcdb79ecd0672066fe7c4cb149288b
child 468519 b2a40b12e2babe3de687f4efb04029e413584cca
permissions -rw-r--r--
Bug 1451821 - Put console old-frontend code in webconsole/old; r=jdescottes. MozReview-Commit-ID: 7jIu1nrS8zW

<!DOCTYPE HTML>
<html dir="ltr" lang="en">
  <head>
    <meta charset="utf8">
    <!--
    - Any copyright is dedicated to the Public Domain.
    - http://creativecommons.org/publicdomain/zero/1.0/
    -->
    <title>Test for bug 920116 - stacktraces for console API messages</title>
    <script>
      function firstCall() {
        secondCall();
      }

      function secondCall() {
        thirdCall();
      }

      function thirdCall() {
        console.log("foo-log");
        console.error("foo-error");
        console.exception("foo-exception");
        console.assert("red" == "blue", "foo-assert");
      }

      window.onload = firstCall;
    </script>
  </head>
  <body>
    <p>Hello world!</p>
  </body>
</html>