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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/profiler/cpu-profiler-bottom-up-times.html

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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="profiler-test.js"></script> 4 <script src="profiler-test.js"></script>
5 <script> 5 <script>
6 6
7 function test() 7 function test()
8 { 8 {
9 var profileAndExpectations = { 9 var profileAndExpectations = {
10 "title": "profile1", 10 "title": "profile1",
11 "target": function() { 11 "target": function() {
12 return WebInspector.targetManager.targets()[0]; 12 return SDK.targetManager.targets()[0];
13 }, 13 },
14 "_profile": { 14 "_profile": {
15 "nodes": [ 15 "nodes": [
16 { 16 {
17 "id": 0, 17 "id": 0,
18 "callFrame": 18 "callFrame":
19 { 19 {
20 "functionName": "(root)", 20 "functionName": "(root)",
21 "scriptId": "0", 21 "scriptId": "0",
22 "url": "a.js", 22 "url": "a.js",
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 "lineNumber": 425 106 "lineNumber": 425
107 }, 107 },
108 "hitCount": 30, 108 "hitCount": 30,
109 "parent": 6 109 "parent": 6
110 } 110 }
111 ], 111 ],
112 "startTime": 0, 112 "startTime": 0,
113 "endTime": 1e6 113 "endTime": 1e6
114 } 114 }
115 }; 115 };
116 var view = new WebInspector.CPUProfileView(profileAndExpectations); 116 var view = new Profiler.CPUProfileView(profileAndExpectations);
117 view.viewSelectComboBox.setSelectedIndex(1); 117 view.viewSelectComboBox.setSelectedIndex(1);
118 view._changeView(); 118 view._changeView();
119 var tree = view.profileDataGridTree; 119 var tree = view.profileDataGridTree;
120 if (!tree) 120 if (!tree)
121 InspectorTest.addResult("no tree"); 121 InspectorTest.addResult("no tree");
122 var node = tree.children[0]; 122 var node = tree.children[0];
123 if (!node) 123 if (!node)
124 InspectorTest.addResult("no node"); 124 InspectorTest.addResult("no node");
125 while (node) { 125 while (node) {
126 InspectorTest.addResult(node.callUID + ": " + node.functionName + " " + node.self + " " + node.total + " " + node.element().textContent); 126 InspectorTest.addResult(node.callUID + ": " + node.functionName + " " + node.self + " " + node.total + " " + node.element().textContent);
127 node = node.traverseNextNode(true, null, true); 127 node = node.traverseNextNode(true, null, true);
128 } 128 }
129 InspectorTest.completeProfilerTest(); 129 InspectorTest.completeProfilerTest();
130 } 130 }
131 131
132 </script> 132 </script>
133 </head> 133 </head>
134 <body onload="runTest()"> 134 <body onload="runTest()">
135 <p> 135 <p>
136 Tests bottom-up view self and total time calculation in CPU profiler. 136 Tests bottom-up view self and total time calculation in CPU profiler.
137 </p> 137 </p>
138 </body> 138 </body>
139 </html> 139 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698