| // 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(); |
| })(); |