summaryrefslogtreecommitdiffstats
path: root/devtools/client/webconsole/test/browser/test-error.html
blob: a856bfab59dae970976acec257b0d55b69656a7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE HTML>
<html dir="ltr" xml:lang="en-US" lang="en-US">
  <head>
    <meta charset="utf-8">
    <title>Console error test</title>
  </head>
  <body>
    <h1>Heads Up Display - error test</h1>
    <p><button>generate error</button></p>

    <script type="text/javascript">
      /* eslint-disable */
      var button = document.getElementsByTagName("button")[0];

      button.addEventListener("click", function  () {
        fooBazBaz.bar();
      }, {once: true});
    </script>
  </body>
</html>