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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/coverage/coverage-view-snapshot.html

Issue 2715423004: DevTools: add coverage snapshots
Patch Set: review comments addressed Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/coverage/coverage-view-snapshot-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/elements-test.js"></script>
5 <script src="coverage-test.js"></script>
6 <script src="resources/coverage.js"></script>
7
8 <link rel="stylesheet" type="text/css" href="resources/highlight-in-source.css">
9
10 <script>
11 async function test()
12 {
13 var coverageView = self.runtime.sharedInstance(Coverage.CoverageView);
14 await coverageView._takeSnapshot();
15 var dataGrid = coverageView._listView._dataGrid;
16 for (var child of dataGrid.rootNode().children) {
17 var data = child._coverageInfo;
18 var url = InspectorTest.formatters.formatAsURL(data.url);
19 if (url.endsWith("-test.js") || url.endsWith(".html"))
20 continue;
21 var type = Coverage.CoverageListView._typeToString(data.type);
22 InspectorTest.addResult(`${url} ${type} used: ${data.usedSize} unused: $ {data.unusedSize} total: ${data.size}`);
23 }
24 InspectorTest.completeTest();
25 }
26
27 </script>
28 </head>
29
30 <body onload="runTest()">
31 <p class="class">
32 Tests the coverage snapshot.
33 </p>
34
35 </body>
36 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/coverage/coverage-view-snapshot-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698