| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="inspector-test.js"></script> | 3 <script src="inspector-test.js"></script> |
| 4 <script src="console-test.js"></script> | 4 <script src="console-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 function onload() | 7 function onload() |
| 8 { | 8 { |
| 9 runTest(); | 9 runTest(); |
| 10 } | 10 } |
| 11 | 11 |
| 12 function test() | 12 function test() |
| 13 { | 13 { |
| 14 InspectorTest.addSniffer(WebInspector.Main.prototype, "inspect", sniffInspec
t, true); | 14 InspectorTest.addSniffer(WebInspector.RuntimeModel.prototype, "_inspectReque
sted", sniffInspect, true); |
| 15 | 15 |
| 16 function sniffInspect(objectId, hints) | 16 function sniffInspect(objectId, hints) |
| 17 { | 17 { |
| 18 InspectorTest.addResult("WebInspector.inspect called with: " + objectId.
description); | 18 InspectorTest.addResult("WebInspector.inspect called with: " + objectId.
description); |
| 19 InspectorTest.addResult("WebInspector.inspect's hints are: " + JSON.stri
ngify(Object.keys(hints))); | 19 InspectorTest.addResult("WebInspector.inspect's hints are: " + JSON.stri
ngify(Object.keys(hints))); |
| 20 } | 20 } |
| 21 | 21 |
| 22 function evalAndDump(expression, next) | 22 function evalAndDump(expression, next) |
| 23 { | 23 { |
| 24 InspectorTest.addResult("\n"); | 24 InspectorTest.addResult("\n"); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 </script> | 56 </script> |
| 57 </head> | 57 </head> |
| 58 | 58 |
| 59 <body onload="onload()"> | 59 <body onload="onload()"> |
| 60 <p id="p1"> | 60 <p id="p1"> |
| 61 Tests that inspect() command line api works. | 61 Tests that inspect() command line api works. |
| 62 </p> | 62 </p> |
| 63 | 63 |
| 64 </body> | 64 </body> |
| 65 </html> | 65 </html> |
| OLD | NEW |