"use strict";
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
Object.defineProperty(exports, "__esModule", { value: true });
const issues_helpers_js_1 = require("../helpers/issues-helpers.js");
const sources_helpers_js_1 = require("../helpers/sources-helpers.js");
describe('The Issues tab', () => {
    it('should highlight the blocked inline <script> in the Sources panel when the link is clicked', async ({ devToolsPage, inspectedPage }) => {
        await inspectedPage.goToResource('sources/csp-blocked-inline-script.html');
        await (0, issues_helpers_js_1.navigateToIssuesTab)(devToolsPage);
        await (0, issues_helpers_js_1.expandIssue)(devToolsPage);
        await (0, issues_helpers_js_1.revealViolatingSourcesLines)(devToolsPage);
        await (0, sources_helpers_js_1.waitForHighlightedLine)(8, devToolsPage);
    });
    it('should highlight the blocked eval call in the Sources panel when the link is clicked', async ({ devToolsPage, inspectedPage }) => {
        await inspectedPage.goToResource('sources/csp-blocked-eval.html');
        await (0, issues_helpers_js_1.navigateToIssuesTab)(devToolsPage);
        await (0, issues_helpers_js_1.expandIssue)(devToolsPage);
        await (0, issues_helpers_js_1.revealViolatingSourcesLines)(devToolsPage);
        await (0, sources_helpers_js_1.waitForHighlightedLine)(8, devToolsPage);
    });
});
//# sourceMappingURL=link-to-correct-source-line.test.js.map