blob: 6866607785164ddf362eb4de3096f2ba20e16a6f [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 the frame gets navigated.\n`);
await TestRunner.loadModule('bindings_test_runner');
TestRunner.markStep('dumpInitialWorkspace');
var snapshot = BindingsTestRunner.dumpWorkspace();
TestRunner.markStep('attachFrame');
await BindingsTestRunner.attachFrame('frame', './resources/magic-frame.html', '_test_attachFrame.js');
snapshot = BindingsTestRunner.dumpWorkspace(snapshot);
TestRunner.markStep('navigateFrame');
await BindingsTestRunner.navigateFrame('frame', './resources/empty-frame.html', '_test_navigateFrame');
snapshot = BindingsTestRunner.dumpWorkspace(snapshot);
TestRunner.completeTest();
})();