summaryrefslogtreecommitdiffstats
path: root/devtools/client/webconsole/test/browser/test-warning-groups.html
blob: 64d2519ab5de2ca507736664016984cc3294cc1f (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
29
30
31
32
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Warning groups webconsole test page</title>
  </head>
  <body>
    <p>Warning groups webconsole test page</p>
    <script>
      "use strict";

      /* exported loadImage, loadIframe, createCookie */
      function loadImage(src) {
        const img = document.createElement("img");
        img.src = src;
        img.alt = (new URL(src)).search;
        img.title = src;
        document.body.appendChild(img);
      }

      function loadIframe(src) {
        const iframe = document.createElement("iframe");
        iframe.src = src;
        document.body.appendChild(iframe);
      }

      function createCookie(cookie) {
        document.cookie = cookie;
      }
    </script>
  </body>
</html>