summaryrefslogtreecommitdiffstats
path: root/devtools/client/webconsole/test/browser/test-console-table.html
blob: 88e9a4c07a5405b117eb106edc6c86e760c84a68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Simple webconsole test page</title>
  </head>
  <body>
    <p>console.table() test page</p>
    <script>
      /* exported doConsoleTable */
      "use strict";

      function doConsoleTable(data, constrainedHeaders = null) {
        if (constrainedHeaders) {
          console.table(data, constrainedHeaders);
        } else {
          console.table(data);
        }
      }
    </script>
  </body>
</html>