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