3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script>
15 RuntimeAgent.evaluate("window", "console", false, evalCallback);
17 function evalCallback(error, result)
20 testController.notifyDone("Exception:" + error);
23 if (result.type === "error")
24 testController.notifyDone("Exception:" + result);
25 var objectProxy = WebInspector.runtimeModel.createRemoteObject(result);
26 objectProxy.getOwnProperties(getPropertiesCallback);
29 function getPropertiesCallback(properties)
31 properties.sort(WebInspector.ObjectPropertiesSection.CompareProperties);
32 var golden = { "window": 1, "document": 1, "eval": 1, "console": 1, "frames": 1, "Array": 1, "doit": 1 };
34 for (var i = 0; i < properties.length; ++i) {
35 var name = properties[i].name;
39 InspectorTest.addObject(result);
40 InspectorTest.completeTest();
47 <body onload="doit()">
49 Tests that console dumps global object with properties.