Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / console / console-dir-global.html
blob718f57c63585ae7a13b698ded4a5a9934b3706fa
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script>
7 function doit()
9 console.dir(window);
10 runTest();
13 function test()
15 InspectorTest.RuntimeAgent.evaluate("window", "console", false, evalCallback);
17 function evalCallback(error, result)
19 if (error) {
20 testController.notifyDone("Exception:" + error);
21 return;
23 if (result.type === "error")
24 testController.notifyDone("Exception:" + result);
25 var objectProxy = InspectorTest.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 };
33 var result = {};
34 for (var i = 0; i < properties.length; ++i) {
35 var name = properties[i].name;
36 if (golden[name])
37 result[name] = 1;
39 InspectorTest.addObject(result);
40 InspectorTest.completeTest();
44 </script>
45 </head>
47 <body onload="doit()">
48 <p>
49 Tests that console dumps global object with properties.
50 </p>
52 </body>
53 </html>