| 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 <script> | 5 <script> |
| 6 | 6 |
| 7 function onload() | 7 function logToConsole() |
| 8 { | 8 { |
| 9 console.log(new Int8Array(10)); | 9 console.log(new Int8Array(10)); |
| 10 console.log(new Int16Array(10)); | 10 console.log(new Int16Array(10)); |
| 11 console.log(new Int32Array(10)); | 11 console.log(new Int32Array(10)); |
| 12 console.log(new Uint8Array(10)); | 12 console.log(new Uint8Array(10)); |
| 13 console.log(new Uint16Array(10)); | 13 console.log(new Uint16Array(10)); |
| 14 console.log(new Uint32Array(10)); | 14 console.log(new Uint32Array(10)); |
| 15 console.log(new Float32Array(10)); | 15 console.log(new Float32Array(10)); |
| 16 console.log(new Float64Array(10)); | 16 console.log(new Float64Array(10)); |
| 17 | 17 |
| 18 console.dir(new Int8Array(10)); | 18 console.dir(new Int8Array(10)); |
| 19 console.dir(new Int16Array(10)); | 19 console.dir(new Int16Array(10)); |
| 20 console.dir(new Int32Array(10)); | 20 console.dir(new Int32Array(10)); |
| 21 console.dir(new Uint8Array(10)); | 21 console.dir(new Uint8Array(10)); |
| 22 console.dir(new Uint16Array(10)); | 22 console.dir(new Uint16Array(10)); |
| 23 console.dir(new Uint32Array(10)); | 23 console.dir(new Uint32Array(10)); |
| 24 console.dir(new Float32Array(10)); | 24 console.dir(new Float32Array(10)); |
| 25 console.dir(new Float64Array(10)); | 25 console.dir(new Float64Array(10)); |
| 26 | |
| 27 runTest(); | |
| 28 } | 26 } |
| 29 | 27 |
| 30 function test() | 28 function test() |
| 31 { | 29 { |
| 32 InspectorTest.dumpConsoleMessages(); | 30 InspectorTest.evaluateInPage("logToConsole()", onLoggedToConsole); |
| 33 InspectorTest.completeTest(); | 31 |
| 32 |
| 33 function onLoggedToConsole() |
| 34 { |
| 35 InspectorTest.waitForRemoteObjectsConsoleMessages(onRemoteObjectsLoaded) |
| 36 } |
| 37 |
| 38 function onRemoteObjectsLoaded() |
| 39 { |
| 40 InspectorTest.dumpConsoleMessages(); |
| 41 InspectorTest.completeTest(); |
| 42 } |
| 34 } | 43 } |
| 35 | 44 |
| 36 </script> | 45 </script> |
| 37 </head> | 46 </head> |
| 38 | 47 |
| 39 <body onload="onload()"> | 48 <body onload="runTest()"> |
| 40 <p> | 49 <p> |
| 41 Tests that console logging detects external arrays as arrays. | 50 Tests that console logging detects external arrays as arrays. |
| 42 </p> | 51 </p> |
| 43 | 52 |
| 44 </body> | 53 </body> |
| 45 </html> | 54 </html> |
| OLD | NEW |