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 <script> | 6 <script> |
6 | |
7 function onload() | 7 function onload() |
8 { | 8 { |
9 console.dir(["test1", "test2"]); | 9 console.dir(["test1", "test2"]); |
10 console.dir(document.childNodes); | 10 console.dir(document.childNodes); |
11 console.dir(document.evaluate("//head", document, null, XPathResult.ANY_TYPE
, null)); | 11 console.dir(document.evaluate("//head", document, null, XPathResult.ANY_TYPE
, null)); |
12 | 12 |
13 // Object with properties containing whitespaces | 13 // Object with properties containing whitespaces |
14 var obj = { $foo5_: 0 }; | 14 var obj = { $foo5_: 0 }; |
15 obj[" a b "] = " a b "; | 15 obj[" a b "] = " a b "; |
16 obj["c d"] = "c d"; | 16 obj["c d"] = "c d"; |
(...skipping 16 matching lines...) Expand all Loading... |
33 // Test "No Scopes" placeholder. | 33 // Test "No Scopes" placeholder. |
34 console.dir(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").g
et); | 34 console.dir(Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").g
et); |
35 | 35 |
36 // Test big typed array: should be no crash or timeout. | 36 // Test big typed array: should be no crash or timeout. |
37 var bigTypedArray = new Uint8Array(new ArrayBuffer(400 * 1000 * 1000)); | 37 var bigTypedArray = new Uint8Array(new ArrayBuffer(400 * 1000 * 1000)); |
38 bigTypedArray["FAIL"] = "FAIL: Object.getOwnPropertyNames() should not have
been run"; | 38 bigTypedArray["FAIL"] = "FAIL: Object.getOwnPropertyNames() should not have
been run"; |
39 console.dir(bigTypedArray); | 39 console.dir(bigTypedArray); |
40 | 40 |
41 runTest(); | 41 runTest(); |
42 } | 42 } |
| 43 //# sourceURL=console-dir.html |
| 44 </script> |
43 | 45 |
| 46 <script> |
44 function test() | 47 function test() |
45 { | 48 { |
46 InspectorTest.expandConsoleMessages(step1, expandTreeElementFilter); | 49 InspectorTest.expandConsoleMessages(step1, expandTreeElementFilter); |
47 | 50 |
48 function expandTreeElementFilter(treeElement) | 51 function expandTreeElementFilter(treeElement) |
49 { | 52 { |
50 var name = treeElement.nameElement && treeElement.nameElement.textConten
t; | 53 var name = treeElement.nameElement && treeElement.nameElement.textConten
t; |
51 return name === "foo" || treeElement.title === "<function scope>"; | 54 return name === "foo" || treeElement.title === "<function scope>"; |
52 } | 55 } |
53 | 56 |
(...skipping 12 matching lines...) Expand all Loading... |
66 </script> | 69 </script> |
67 </head> | 70 </head> |
68 | 71 |
69 <body onload="onload()"> | 72 <body onload="onload()"> |
70 <p> | 73 <p> |
71 Tests that console logging dumps proper messages. | 74 Tests that console logging dumps proper messages. |
72 </p> | 75 </p> |
73 | 76 |
74 </body> | 77 </body> |
75 </html> | 78 </html> |
OLD | NEW |