blob: fa6bc3af7e6de8ac6a9bf75b3764b0b1f9e234eb [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);
ConsoleTestRunner.dumpConsoleMessages();
TestRunner.completeTest();
})();