summaryrefslogtreecommitdiffstats
path: root/devtools/client/webconsole/test/test-own-console.html
blob: d1d18ebc2c286785e0990811608bbb0564d46974 (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
<!DOCTYPE HTML>
<html dir="ltr" xml:lang="en-US" lang="en-US">
<head>
<meta charset="utf-8">
<script>
  var _console = {
    foo: "bar"
  }

  window.console = _console;

  function loadIFrame() {
    var iframe = document.body.querySelector("iframe");
    iframe.addEventListener("load", function() {
      iframe.removeEventListener("load", arguments.callee, true);
    }, true);

    iframe.setAttribute("src", "test-console.html");
  }
</script>
</head>
<body>
  <iframe></iframe>
</body>