blob: d081ac7216773713fa67d7e3ea80a53bbbf67156 [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 navigator is updated as frame gets navigated.\n`);
await TestRunner.loadModule('sources_test_runner');
await TestRunner.loadModule('bindings_test_runner');
var sourcesNavigator = new Sources.NetworkNavigatorView();
sourcesNavigator.show(UI.inspectorView.element);
TestRunner.markStep('dumpInitialNavigator');
SourcesTestRunner.dumpNavigatorView(sourcesNavigator, false);
TestRunner.markStep('attachFrame');
await BindingsTestRunner.attachFrame('frame', './resources/magic-frame.html');
SourcesTestRunner.dumpNavigatorView(sourcesNavigator, false);
TestRunner.markStep('navigateFrame');
await BindingsTestRunner.navigateFrame('frame', './resource/empty-frame.html');
SourcesTestRunner.dumpNavigatorView(sourcesNavigator, false);
TestRunner.completeTest();
})();