blob: d72e475496286c7b9fe619d98bf28394a1b37b08 [file] [log] [blame]
// 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(`Verify that UISourceCodes are removed as main frame gets navigated.\n`);
await TestRunner.loadModule('bindings_test_runner');
TestRunner.markStep('dumpInitialWorkspace');
var snapshot = BindingsTestRunner.dumpWorkspace();
TestRunner.markStep('attachFrame');
await Promise.all([
BindingsTestRunner.attachFrame('frame', './resources/sourcemap-frame.html', '_test_attachFrame.js'),
BindingsTestRunner.waitForSourceMap('sourcemap-script.js.map'),
BindingsTestRunner.waitForSourceMap('sourcemap-style.css.map'),
]);
snapshot = BindingsTestRunner.dumpWorkspace(snapshot);
TestRunner.markStep('navigateMainFrame');
var url = 'http://127.0.0.1:8000/devtools/bindings/resources/empty-page.html';
await TestRunner.navigatePromise(url);
snapshot = BindingsTestRunner.dumpWorkspace(snapshot);
TestRunner.completeTest();
})();