| 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-tests.js"></script> | 4 <script src="../http/tests/inspector/console-tests.js"></script> |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 function doit() | 7 function doit() |
| 8 { | 8 { |
| 9 console.dir(window); | 9 console.dir(window); |
| 10 | 10 |
| 11 function callback(result) | 11 function callback(result) |
| 12 { | 12 { |
| 13 dumpObject(result); | 13 dumpObject(result); |
| 14 notifyDone(); | 14 notifyDone(); |
| 15 } | 15 } |
| 16 | 16 |
| 17 evaluateInWebInspector("frontend_expandAndDumpConsoleMessages", callback); | 17 evaluateInWebInspector("frontend_expandAndDumpConsoleMessages", callback); |
| 18 } | 18 } |
| 19 | 19 |
| 20 function frontend_expandAndDumpConsoleMessages(testController) | 20 function frontend_expandAndDumpConsoleMessages(testController) |
| 21 { | 21 { |
| 22 // Need test to be async to expand console objects. | 22 // Need test to be async to expand console objects. |
| 23 testController.waitUntilDone(); | 23 testController.waitUntilDone(); |
| 24 | 24 |
| 25 InspectorBackend.evaluate("window", "console", evalCallback); | 25 InspectorBackend.evaluate("window", "console", false, evalCallback); |
| 26 | 26 |
| 27 function evalCallback(result) | 27 function evalCallback(result) |
| 28 { | 28 { |
| 29 if (result.type === "error") | 29 if (result.type === "error") |
| 30 testController.notifyDone("Exception:" + result); | 30 testController.notifyDone("Exception:" + result); |
| 31 var objectProxy = WebInspector.RemoteObject.fromPayload(result); | 31 var objectProxy = WebInspector.RemoteObject.fromPayload(result); |
| 32 objectProxy.getProperties(false, true, getPropertiesCallback); | 32 objectProxy.getProperties(false, true, getPropertiesCallback); |
| 33 } | 33 } |
| 34 | 34 |
| 35 function getPropertiesCallback(properties) | 35 function getPropertiesCallback(properties) |
| (...skipping 13 matching lines...) Expand all Loading... |
| 49 </script> | 49 </script> |
| 50 </head> | 50 </head> |
| 51 | 51 |
| 52 <body onload="onload()"> | 52 <body onload="onload()"> |
| 53 <p> | 53 <p> |
| 54 Tests that console dumps global object with properties. | 54 Tests that console dumps global object with properties. |
| 55 </p> | 55 </p> |
| 56 | 56 |
| 57 </body> | 57 </body> |
| 58 </html> | 58 </html> |
| OLD | NEW |