Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-dir-global.html

Issue 2712513002: DevTools: extract ObjectUI module from Components (Closed)
Patch Set: fix build.gn Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 doit() 7 function doit()
8 { 8 {
9 console.dir(window); 9 console.dir(window);
10 runTest(); 10 runTest();
(...skipping 10 matching lines...) Expand all
21 return; 21 return;
22 } 22 }
23 if (result.type === "error") 23 if (result.type === "error")
24 testController.notifyDone("Exception:" + result); 24 testController.notifyDone("Exception:" + result);
25 var objectProxy = InspectorTest.runtimeModel.createRemoteObject(result); 25 var objectProxy = InspectorTest.runtimeModel.createRemoteObject(result);
26 objectProxy.getOwnProperties(false, getPropertiesCallback); 26 objectProxy.getOwnProperties(false, getPropertiesCallback);
27 } 27 }
28 28
29 function getPropertiesCallback(properties) 29 function getPropertiesCallback(properties)
30 { 30 {
31 properties.sort(Components.ObjectPropertiesSection.CompareProperties); 31 properties.sort(ObjectUI.ObjectPropertiesSection.CompareProperties);
32 var golden = { "window": 1, "document": 1, "eval": 1, "console": 1, "fra mes": 1, "Array": 1, "doit": 1 }; 32 var golden = { "window": 1, "document": 1, "eval": 1, "console": 1, "fra mes": 1, "Array": 1, "doit": 1 };
33 var result = {}; 33 var result = {};
34 for (var i = 0; i < properties.length; ++i) { 34 for (var i = 0; i < properties.length; ++i) {
35 var name = properties[i].name; 35 var name = properties[i].name;
36 if (golden[name]) 36 if (golden[name])
37 result[name] = 1; 37 result[name] = 1;
38 } 38 }
39 InspectorTest.addObject(result); 39 InspectorTest.addObject(result);
40 InspectorTest.completeTest(); 40 InspectorTest.completeTest();
41 } 41 }
42 } 42 }
43 43
44 </script> 44 </script>
45 </head> 45 </head>
46 46
47 <body onload="doit()"> 47 <body onload="doit()">
48 <p> 48 <p>
49 Tests that console dumps global object with properties. 49 Tests that console dumps global object with properties.
50 </p> 50 </p>
51 51
52 </body> 52 </body>
53 </html> 53 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698