browser/devtools/webconsole/test/test-own-console.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/devtools/webconsole/test/test-own-console.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,24 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html dir="ltr" xml:lang="en-US" lang="en-US">
     1.6 +<head>
     1.7 +<meta charset="utf-8">
     1.8 +<script>
     1.9 +  var _console = {
    1.10 +    foo: "bar"
    1.11 +  }
    1.12 +
    1.13 +  window.console = _console;
    1.14 +
    1.15 +  function loadIFrame() {
    1.16 +    var iframe = document.body.querySelector("iframe");
    1.17 +    iframe.addEventListener("load", function() {
    1.18 +      iframe.removeEventListener("load", arguments.callee, true);
    1.19 +    }, true);
    1.20 +
    1.21 +    iframe.setAttribute("src", "test-console.html");
    1.22 +  }
    1.23 +</script>
    1.24 +</head>
    1.25 +<body>
    1.26 +  <iframe></iframe>
    1.27 +</body>

mercurial