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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/profiler/heap-snapshot-summary-retainers.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="heap-snapshot-test.js"></script> 4 <script src="heap-snapshot-test.js"></script>
5 <script> 5 <script>
6 6
7 function test() 7 function test()
8 { 8 {
9 var instanceCount = 25; 9 var instanceCount = 25;
10 function createHeapSnapshot() 10 function createHeapSnapshot()
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 function step3(row) 97 function step3(row)
98 { 98 {
99 var count = row.data["count"]; 99 var count = row.data["count"];
100 InspectorTest.assertEquals("1", count); 100 InspectorTest.assertEquals("1", count);
101 InspectorTest.clickRowAndGetRetainers(row.children[0], step4); 101 InspectorTest.clickRowAndGetRetainers(row.children[0], step4);
102 } 102 }
103 103
104 function step4(retainersRoot) 104 function step4(retainersRoot)
105 { 105 {
106 retainersRoot.dataGrid.addEventListener( 106 retainersRoot.dataGrid.addEventListener(
107 WebInspector.HeapSnapshotRetainmentDataGrid.Events.ExpandRet ainersComplete, 107 Profiler.HeapSnapshotRetainmentDataGrid.Events.ExpandRetaine rsComplete,
108 step5.bind(this, retainersRoot)); 108 step5.bind(this, retainersRoot));
109 } 109 }
110 110
111 function step5(retainersRoot) 111 function step5(retainersRoot)
112 { 112 {
113 var l3 = retainersRoot; 113 var l3 = retainersRoot;
114 InspectorTest.assertEquals(1, l3.children.length, "One retainer of L3"); 114 InspectorTest.assertEquals(1, l3.children.length, "One retainer of L3");
115 var l2 = l3.children[0]; 115 var l2 = l3.children[0];
116 InspectorTest.assertEquals("y", l2._referenceName); 116 InspectorTest.assertEquals("y", l2._referenceName);
117 InspectorTest.assertEquals(1, l2.children.length, "One retainer of L2"); 117 InspectorTest.assertEquals(1, l2.children.length, "One retainer of L2");
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 function step3(row) 176 function step3(row)
177 { 177 {
178 var count = row.data["count"]; 178 var count = row.data["count"];
179 InspectorTest.assertEquals("1", count); 179 InspectorTest.assertEquals("1", count);
180 InspectorTest.clickRowAndGetRetainers(row.children[0], step4); 180 InspectorTest.clickRowAndGetRetainers(row.children[0], step4);
181 } 181 }
182 182
183 function step4(retainersRoot) 183 function step4(retainersRoot)
184 { 184 {
185 retainersRoot.dataGrid.addEventListener( 185 retainersRoot.dataGrid.addEventListener(
186 WebInspector.HeapSnapshotRetainmentDataGrid.Events.ExpandRet ainersComplete, 186 Profiler.HeapSnapshotRetainmentDataGrid.Events.ExpandRetaine rsComplete,
187 step5.bind(this, retainersRoot)); 187 step5.bind(this, retainersRoot));
188 } 188 }
189 189
190 function step5(retainersRoot) 190 function step5(retainersRoot)
191 { 191 {
192 var rowsShown = InspectorTest.countDataRows(retainersRoot); 192 var rowsShown = InspectorTest.countDataRows(retainersRoot);
193 InspectorTest.assertEquals(20, rowsShown, "retaining objects"); 193 InspectorTest.assertEquals(20, rowsShown, "retaining objects");
194 setTimeout(next, 0); 194 setTimeout(next, 0);
195 } 195 }
196 } 196 }
197 ]); 197 ]);
198 } 198 }
199 199
200 </script> 200 </script>
201 </head> 201 </head>
202 <body onload="runTest()"> 202 <body onload="runTest()">
203 <pre> 203 <pre>
204 Tests retainers view. 204 Tests retainers view.
205 - Number of retainers of an A object must be 2 (A itself and B).</ul> 205 - Number of retainers of an A object must be 2 (A itself and B).</ul>
206 - When an object has just one retainer it must be expanded automatically until 206 - When an object has just one retainer it must be expanded automatically until
207 there's an object having two or more retainers. 207 there's an object having two or more retainers.
208 - Test the expansion of a long retainment chain is limited by a certain level. 208 - Test the expansion of a long retainment chain is limited by a certain level.
209 </pre> 209 </pre>
210 </body> 210 </body>
211 </html> 211 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698