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/profiler/heap-snapshot-statistics.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 function createHeapSnapshot() 9 function createHeapSnapshot()
10 { 10 {
(...skipping 18 matching lines...) Expand all
29 var strongRoots = new InspectorTest.HeapNode("(Strong roots)", 0, Inspec torTest.HeapNode.Type.synthetic); 29 var strongRoots = new InspectorTest.HeapNode("(Strong roots)", 0, Inspec torTest.HeapNode.Type.synthetic);
30 gcRootsNode.linkNode(strongRoots, InspectorTest.HeapEdge.Type.internal, "0"); 30 gcRootsNode.linkNode(strongRoots, InspectorTest.HeapEdge.Type.internal, "0");
31 var systemObj = new InspectorTest.HeapNode("SystemObject", 900000000, In spectorTest.HeapNode.Type.object); 31 var systemObj = new InspectorTest.HeapNode("SystemObject", 900000000, In spectorTest.HeapNode.Type.object);
32 strongRoots.linkNode(systemObj, InspectorTest.HeapEdge.Type.internal, "0 "); 32 strongRoots.linkNode(systemObj, InspectorTest.HeapEdge.Type.internal, "0 ");
33 return builder.generateSnapshot(); 33 return builder.generateSnapshot();
34 } 34 }
35 35
36 InspectorTest.runHeapSnapshotTestSuite([ 36 InspectorTest.runHeapSnapshotTestSuite([
37 function testStatistics(next) 37 function testStatistics(next)
38 { 38 {
39 InspectorTest.addSniffer(WebInspector.HeapSnapshotView.prototype, "_ gotStatistics", step1, true); 39 InspectorTest.addSniffer(Profiler.HeapSnapshotView.prototype, "_gotS tatistics", step1, true);
40 InspectorTest.takeAndOpenSnapshot(createHeapSnapshot, function() {}) ; 40 InspectorTest.takeAndOpenSnapshot(createHeapSnapshot, function() {}) ;
41 41
42 function step1(statistics) 42 function step1(statistics)
43 { 43 {
44 InspectorTest.addResult(JSON.stringify(statistics)); 44 InspectorTest.addResult(JSON.stringify(statistics));
45 setTimeout(next, 0); 45 setTimeout(next, 0);
46 } 46 }
47 } 47 }
48 ]); 48 ]);
49 } 49 }
50 50
51 </script> 51 </script>
52 </head> 52 </head>
53 <body onload="runTest()"> 53 <body onload="runTest()">
54 <p> 54 <p>
55 Tests Statistics view of detailed heap snapshots. 55 Tests Statistics view of detailed heap snapshots.
56 </p> 56 </p>
57 </body> 57 </body>
58 </html> 58 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698