blob: d502b5bed56e0c8d55049be0e02b3c7ebbc63fc6 [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(`Tests that console preserves log on oopif navigation`);
await TestRunner.loadModule('console_test_runner');
await TestRunner.showPanel('console');
Common.settingForTest('preserveConsoleLog').set(false);
await TestRunner.navigatePromise('resources/empty.html');
await TestRunner.evaluateInPage(`console.log('Before navigation')`);
await TestRunner.addIframe('http://devtools.oopif.test:8000/devtools/oopif/resources/empty.html');
await TestRunner.evaluateInPage(`console.log('After navigation')`);
await ConsoleTestRunner.dumpConsoleMessages();
TestRunner.completeTest();
})();