blob: 3e2b7f0247c48035c12d2346db7ae036a1c3d35a [file] [log] [blame]
// Copyright 2018 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(`Verify that sourcemap emits warning if there's a section with "url" field.`);
await TestRunner.loadModule('console_test_runner');
await TestRunner.showPanel('console');
const url = 'http://127.0.0.1:8000/devtools/resources/source-map-warning.html';
await TestRunner.navigatePromise(url);
await ConsoleTestRunner.waitForConsoleMessagesPromise(2);
await ConsoleTestRunner.dumpConsoleMessages();
TestRunner.completeTest();
})();