OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
4 <script src="../../http/tests/inspector/console-test.js"></script> | 4 <script src="../../http/tests/inspector/console-test.js"></script> |
5 | 5 |
6 <script> | 6 <script> |
7 // Global Values | 7 // Global Values |
8 var globals = []; | 8 var globals = []; |
9 | 9 |
10 function log(current) | 10 function log(current) |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 }); | 60 }); |
61 var negZero = 1 / Number.NEGATIVE_INFINITY; | 61 var negZero = 1 / Number.NEGATIVE_INFINITY; |
62 var textNode = document.getElementById("x").nextSibling; | 62 var textNode = document.getElementById("x").nextSibling; |
63 var arrayLikeFunction = function( /**/ foo/**/, /*/**/bar, | 63 var arrayLikeFunction = function( /**/ foo/**/, /*/**/bar, |
64 /**/baz) {}; | 64 /**/baz) {}; |
65 arrayLikeFunction.splice = function() {}; | 65 arrayLikeFunction.splice = function() {}; |
66 var smallTypedArray = new Uint8Array(new ArrayBuffer(400)); | 66 var smallTypedArray = new Uint8Array(new ArrayBuffer(400)); |
67 smallTypedArray["foo"] = "bar"; | 67 smallTypedArray["foo"] = "bar"; |
68 var bigTypedArray = new Uint8Array(new ArrayBuffer(400 * 1000 * 1000)); | 68 var bigTypedArray = new Uint8Array(new ArrayBuffer(400 * 1000 * 1000)); |
69 bigTypedArray["FAIL"] = "FAIL: Object.getOwnPropertyNames() should not have
been run"; | 69 bigTypedArray["FAIL"] = "FAIL: Object.getOwnPropertyNames() should not have
been run"; |
| 70 var namespace = {}; |
| 71 namespace.longSubNamespace = {}; |
| 72 namespace.longSubNamespace.x = {}; |
| 73 namespace.longSubNamespace.x.className = function(){}; |
| 74 var instanceWithLongClassName = new namespace.longSubNamespace.x.className()
; |
70 globals = [ | 75 globals = [ |
71 regex1, regex2, str, str2, error, errorWithMessage, errorWithMultilineMe
ssage, node, func, multilinefunc, | 76 regex1, regex2, str, str2, error, errorWithMessage, errorWithMultilineMe
ssage, node, func, multilinefunc, |
72 num, linkify, null, undefined, valuelessAttribute, valuedAttribute, exis
tingAttribute, throwingLengthGetter, | 77 num, linkify, null, undefined, valuelessAttribute, valuedAttribute, exis
tingAttribute, throwingLengthGetter, |
73 NaN, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY, array, {}, [fun
ction() {}], bar, svg, | 78 NaN, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY, array, {}, [fun
ction() {}], bar, svg, |
74 objectWithNonEnumerables, negZero, Object.create(null), Object, Object.p
rototype, arrayLikeFunction, | 79 objectWithNonEnumerables, negZero, Object.create(null), Object, Object.p
rototype, arrayLikeFunction, |
75 new Number(42), new String("abc"), new Uint16Array([1, 2, 3]), textNode,
domException(), | 80 new Number(42), new String("abc"), new Uint16Array([1, 2, 3]), textNode,
domException(), |
76 smallTypedArray, bigTypedArray | 81 smallTypedArray, bigTypedArray, instanceWithLongClassName |
77 ]; | 82 ]; |
78 | 83 |
79 runTest(); | 84 runTest(); |
80 } | 85 } |
81 | 86 |
82 function domException() | 87 function domException() |
83 { | 88 { |
84 var result = "FAIL"; | 89 var result = "FAIL"; |
85 try { | 90 try { |
86 var a = document.createElement("div"); | 91 var a = document.createElement("div"); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 } | 141 } |
137 </script> | 142 </script> |
138 </head> | 143 </head> |
139 | 144 |
140 <body onload="onload()"> | 145 <body onload="onload()"> |
141 <div id="x"></div> | 146 <div id="x"></div> |
142 <p id="p">Tests that console logging dumps proper messages.</p> | 147 <p id="p">Tests that console logging dumps proper messages.</p> |
143 </body> | 148 </body> |
144 <svg id="svg-node"></svg> | 149 <svg id="svg-node"></svg> |
145 </html> | 150 </html> |
OLD | NEW |