summaryrefslogtreecommitdiffstats
path: root/devtools/client/webconsole/new-console-output/test/mochitest/test-console-group.html
blob: 47373d3b921e848a9af0838ff37ecd6e9ca7eb1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Webconsole console.group test page</title>
  </head>
  <body>
    <p>console.group() & console.groupCollapsed() test page</p>
    <script>
    "use strict";

    function doLog() {
        console.group("group-1");
        console.log("log-1");
        console.group("group-2");
        console.log("log-2");
        console.groupEnd("group-2");
        console.log("log-3");
        console.groupEnd("group-1");
        console.log("log-4");
        console.groupCollapsed("group-3");
        console.log("log-5");
        console.groupEnd("group-3");
        console.log("log-6");
    }
    </script>
  </body>
</html>