browser/devtools/webconsole/test/test-result-format-as-string.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/devtools/webconsole/test/test-result-format-as-string.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html lang="en">
     1.6 +  <head>
     1.7 +    <meta charset="utf-8">
     1.8 +    <title>Web Console test: jsterm eval format as a string</title>
     1.9 +    <!-- Any copyright is dedicated to the Public Domain.
    1.10 +         http://creativecommons.org/publicdomain/zero/1.0/ -->
    1.11 +  </head>
    1.12 +  <body>
    1.13 +    <p>Make sure js eval results are formatted as strings.</p>
    1.14 +    <script>
    1.15 +      document.querySelector("p").toSource = function() {
    1.16 +        var element = document.createElement("div");
    1.17 +        element.id = "foobar";
    1.18 +        element.textContent = "bug772506_content";
    1.19 +        element.setAttribute("onmousemove",
    1.20 +          "(function () {" +
    1.21 +          "  gBrowser._bug772506 = 'foobar';" +
    1.22 +          "})();"
    1.23 +        );
    1.24 +        return element;
    1.25 +      };
    1.26 +    </script>
    1.27 +  </body>
    1.28 +</html>

mercurial