browser/devtools/webconsole/test/test-console-output-02.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/devtools/webconsole/test/test-console-output-02.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,61 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html dir="ltr" lang="en-US">
     1.6 +<head>
     1.7 +  <meta charset="utf-8">
     1.8 +  <title>Test the web console output - 02</title>
     1.9 +  <!--
    1.10 +  - Any copyright is dedicated to the Public Domain.
    1.11 +  - http://creativecommons.org/publicdomain/zero/1.0/
    1.12 +  -->
    1.13 +</head>
    1.14 +<body>
    1.15 +  <p>hello world!</p>
    1.16 +  <script type="text/javascript">
    1.17 +function testfn1() { return 42; }
    1.18 +
    1.19 +var testobj1 = {
    1.20 +  testfn2: function() { return 42; },
    1.21 +};
    1.22 +
    1.23 +function testfn3() { return 42; }
    1.24 +testfn3.displayName = "testfn3DisplayName";
    1.25 +
    1.26 +var array1 = [1, 2, 3, "a", "b", "c", "4", "5"];
    1.27 +
    1.28 +var array2 = ["a", document, document.body, document.body.dataset,
    1.29 +              document.body.classList];
    1.30 +
    1.31 +var array3 = [1, window, null, "a", "b", undefined, false, "", -Infinity, testfn3, testobj1, "foo", "bar"];
    1.32 +
    1.33 +var array4 = new Array(5);
    1.34 +array4.push("test");
    1.35 +array4.push(array4);
    1.36 +
    1.37 +var typedarray1 = new Int32Array([1, 287, 8651, 40983, 8754]);
    1.38 +
    1.39 +var set1 = new Set([1, 2, null, array3, "a", "b", undefined, document.head]);
    1.40 +set1.add(set1);
    1.41 +
    1.42 +var testobj2 = {a: "b", c: "d", e: 1, f: "2"};
    1.43 +testobj2.foo = testobj1;
    1.44 +testobj2.bar = testobj2;
    1.45 +Object.defineProperty(testobj2, "getterTest", {
    1.46 +  enumerable: true,
    1.47 +  get: function() {
    1.48 +    return 42;
    1.49 +  },
    1.50 +});
    1.51 +
    1.52 +var testobj3 = {a: "b", c: "d", e: 1, f: "2", g: true, h: null, i: undefined,
    1.53 +                j: "", k: document.styleSheets, l: document.body.childNodes,
    1.54 +                o: new Array(125), m: document.head};
    1.55 +
    1.56 +var testobj4 = {a: "b", c: "d"};
    1.57 +Object.defineProperty(testobj4, "nonEnumerable", { value: "hello world" });
    1.58 +
    1.59 +var map1 = new Map([["a", "b"], [document.body.children, testobj2]]);
    1.60 +map1.set(map1, set1);
    1.61 +
    1.62 +  </script>
    1.63 +</body>
    1.64 +</html>

mercurial