| OLD | NEW |
| 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="coverage-test.js"></script> | 5 <script src="coverage-test.js"></script> |
| 6 <script src="resources/coverage.js"></script> | 6 <script src="resources/coverage.js"></script> |
| 7 | 7 |
| 8 <script> | 8 <script> |
| 9 | 9 |
| 10 async function test() | 10 async function test() |
| 11 { | 11 { |
| 12 InspectorTest.startCoverage(); | 12 InspectorTest.startCoverage(); |
| 13 await InspectorTest.evaluateInPagePromise("performActions()"); | 13 await InspectorTest.evaluateInPagePromise("performActions()"); |
| 14 await InspectorTest.stopCoverage(); | 14 await InspectorTest.stopCoverage(); |
| 15 await InspectorTest.sourceDecorated("coverage.js"); | 15 await InspectorTest.dumpDecorations("coverage.js"); |
| 16 | |
| 17 var lines = Array.prototype.map.call(document.querySelectorAll(".text-editor
-coverage-unused-marker"), | |
| 18 e => e.parentElement.previousSibling.te
xtContent); | |
| 19 InspectorTest.addResult(lines); | |
| 20 InspectorTest.completeTest(); | 16 InspectorTest.completeTest(); |
| 21 } | 17 } |
| 22 </script> | 18 </script> |
| 23 </head> | 19 </head> |
| 24 <p id="id">PASS</p> | 20 <p id="id">PASS</p> |
| 25 <body onload="runTest()"> | 21 <body onload="runTest()"> |
| 26 <p>Tests the coverage highlight in sources after the recording finishes.</p> | 22 <p>Tests the coverage highlight in sources after the recording finishes.</p> |
| 27 </body> | 23 </body> |
| 28 </html> | 24 </html> |
| OLD | NEW |