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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/coverage/gutter-js.html

Issue 2745283002: DevTools: merge coverage segments from different instances of same URL (Closed)
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
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/debugger-test.js"></script> 4 <script src="../../http/tests/inspector/debugger-test.js"></script>
5 <script src="../../http/tests/inspector/sources-test.js"></script>
6 <script src="coverage-test.js"></script> 5 <script src="coverage-test.js"></script>
7 <script src="resources/coverage.js"></script> 6 <script src="resources/coverage.js"></script>
8 7
9 <script> 8 <script>
10 9
11 async function test() 10 async function test()
12 { 11 {
13 InspectorTest.startCoverage(); 12 InspectorTest.startCoverage();
14 await InspectorTest.evaluateInPagePromise("performActions()"); 13 await InspectorTest.evaluateInPagePromise("performActions()");
15 await InspectorTest.stopCoverage(); 14 await InspectorTest.stopCoverage();
16 await InspectorTest.sourceDecorated("coverage.js"); 15 await InspectorTest.sourceDecorated("coverage.js");
17 16
18 var lines = Array.prototype.map.call(document.querySelectorAll(".text-editor -coverage-unused-marker"), 17 var lines = Array.prototype.map.call(document.querySelectorAll(".text-editor -coverage-unused-marker"),
19 e => e.parentElement.previousSibling.te xtContent); 18 e => e.parentElement.previousSibling.te xtContent);
20 InspectorTest.addResult(lines); 19 InspectorTest.addResult(lines);
21 InspectorTest.completeTest(); 20 InspectorTest.completeTest();
22 } 21 }
23 </script> 22 </script>
24 </head> 23 </head>
25 <p id="id">PASS</p> 24 <p id="id">PASS</p>
26 <body onload="runTest()"> 25 <body onload="runTest()">
27 <p>Tests the coverage highlight in sources after the recording finishes.</p> 26 <p>Tests the coverage highlight in sources after the recording finishes.</p>
28 </body> 27 </body>
29 </html> 28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698