| 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 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); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 console.dir({ __proto__: null }); | 31 console.dir({ __proto__: null }); |
| 32 console.dir({ foo: { __proto__: null }}); | 32 console.dir({ foo: { __proto__: null }}); |
| 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 // document.createEvent("Event") has a special property "isTrusted" flagged
"Unforgeable". |
| 42 var event = document.createEvent("Event"); |
| 43 Object.defineProperty(event, "timeStamp", {value: 0}) |
| 44 console.dir(event); |
| 45 |
| 41 runTest(); | 46 runTest(); |
| 42 } | 47 } |
| 43 //# sourceURL=console-dir.html | 48 //# sourceURL=console-dir.html |
| 44 </script> | 49 </script> |
| 45 | 50 |
| 46 <script> | 51 <script> |
| 47 function test() | 52 function test() |
| 48 { | 53 { |
| 49 InspectorTest.expandConsoleMessages(step1, expandTreeElementFilter); | 54 InspectorTest.expandConsoleMessages(step1, expandTreeElementFilter); |
| 50 | 55 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 69 </script> | 74 </script> |
| 70 </head> | 75 </head> |
| 71 | 76 |
| 72 <body onload="onload()"> | 77 <body onload="onload()"> |
| 73 <p> | 78 <p> |
| 74 Tests that console logging dumps proper messages. | 79 Tests that console logging dumps proper messages. |
| 75 </p> | 80 </p> |
| 76 | 81 |
| 77 </body> | 82 </body> |
| 78 </html> | 83 </html> |
| OLD | NEW |