| // Copyright 2017 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| (async function() { |
| TestRunner.addResult(`Tests the coverage highlight in sources after the recording finishes.\n`); |
| await TestRunner.loadModule('coverage_test_runner'); |
| await TestRunner.loadHTML(` |
| <p id="id">PASS</p> |
| `); |
| await TestRunner.addStylesheetTag('resources/highlight-in-source.css'); |
| |
| await CoverageTestRunner.startCoverage(); |
| await TestRunner.evaluateInPagePromise('performActions()'); |
| await CoverageTestRunner.stopCoverage(); |
| await CoverageTestRunner.dumpDecorations('highlight-in-source.css'); |
| TestRunner.completeTest(); |
| })(); |