| 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="../../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> |
| OLD | NEW |