Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html dir="ltr" lang="en-US"> |
michael@0 | 3 | <head> |
michael@0 | 4 | <meta charset="utf-8"> |
michael@0 | 5 | <title>Test the web console output - 02</title> |
michael@0 | 6 | <!-- |
michael@0 | 7 | - Any copyright is dedicated to the Public Domain. |
michael@0 | 8 | - http://creativecommons.org/publicdomain/zero/1.0/ |
michael@0 | 9 | --> |
michael@0 | 10 | </head> |
michael@0 | 11 | <body> |
michael@0 | 12 | <p>hello world!</p> |
michael@0 | 13 | <script type="text/javascript"> |
michael@0 | 14 | function testfn1() { return 42; } |
michael@0 | 15 | |
michael@0 | 16 | var testobj1 = { |
michael@0 | 17 | testfn2: function() { return 42; }, |
michael@0 | 18 | }; |
michael@0 | 19 | |
michael@0 | 20 | function testfn3() { return 42; } |
michael@0 | 21 | testfn3.displayName = "testfn3DisplayName"; |
michael@0 | 22 | |
michael@0 | 23 | var array1 = [1, 2, 3, "a", "b", "c", "4", "5"]; |
michael@0 | 24 | |
michael@0 | 25 | var array2 = ["a", document, document.body, document.body.dataset, |
michael@0 | 26 | document.body.classList]; |
michael@0 | 27 | |
michael@0 | 28 | var array3 = [1, window, null, "a", "b", undefined, false, "", -Infinity, testfn3, testobj1, "foo", "bar"]; |
michael@0 | 29 | |
michael@0 | 30 | var array4 = new Array(5); |
michael@0 | 31 | array4.push("test"); |
michael@0 | 32 | array4.push(array4); |
michael@0 | 33 | |
michael@0 | 34 | var typedarray1 = new Int32Array([1, 287, 8651, 40983, 8754]); |
michael@0 | 35 | |
michael@0 | 36 | var set1 = new Set([1, 2, null, array3, "a", "b", undefined, document.head]); |
michael@0 | 37 | set1.add(set1); |
michael@0 | 38 | |
michael@0 | 39 | var testobj2 = {a: "b", c: "d", e: 1, f: "2"}; |
michael@0 | 40 | testobj2.foo = testobj1; |
michael@0 | 41 | testobj2.bar = testobj2; |
michael@0 | 42 | Object.defineProperty(testobj2, "getterTest", { |
michael@0 | 43 | enumerable: true, |
michael@0 | 44 | get: function() { |
michael@0 | 45 | return 42; |
michael@0 | 46 | }, |
michael@0 | 47 | }); |
michael@0 | 48 | |
michael@0 | 49 | var testobj3 = {a: "b", c: "d", e: 1, f: "2", g: true, h: null, i: undefined, |
michael@0 | 50 | j: "", k: document.styleSheets, l: document.body.childNodes, |
michael@0 | 51 | o: new Array(125), m: document.head}; |
michael@0 | 52 | |
michael@0 | 53 | var testobj4 = {a: "b", c: "d"}; |
michael@0 | 54 | Object.defineProperty(testobj4, "nonEnumerable", { value: "hello world" }); |
michael@0 | 55 | |
michael@0 | 56 | var map1 = new Map([["a", "b"], [document.body.children, testobj2]]); |
michael@0 | 57 | map1.set(map1, set1); |
michael@0 | 58 | |
michael@0 | 59 | </script> |
michael@0 | 60 | </body> |
michael@0 | 61 | </html> |