Commit 6cbd33b0 authored by Adithya Srinivasan's avatar Adithya Srinivasan Committed by Chromium LUCI CQ

DevTools: Add regression test for crbug.com/1158210

Tests that console messages are preserved across a x-process navigation.

Bug: 1158210
Change-Id: I7273ad218f2cf96e797679cf9552d5279f3dfe08
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2616830Reviewed-by: default avatarSimon Zünd <szuend@chromium.org>
Commit-Queue: Adithya Srinivasan <adithyas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#842023}
parent f926db13
Tests that the console can preserve log messages across cross-process navigations.
console-preserve-log…ss-navigation.js:11 before navigation
Navigated to empty.html
console-preserve-log…ss-navigation.js:13 after navigation
// Copyright 2021 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 the console can preserve log messages across cross-process navigations.`);
await TestRunner.loadModule('console_test_runner');
await TestRunner.showPanel('console');
await TestRunner.navigatePromise('http://devtools.oopif.test:8000/devtools/oopif/resources/empty.html')
Common.settingForTest('preserveConsoleLog').set(true);
await TestRunner.evaluateInPage(`console.log('before navigation')`);
await TestRunner.navigatePromise('http://127.0.0.1:8000/devtools/oopif/resources/empty.html')
await TestRunner.evaluateInPage(`console.log('after navigation')`);
await ConsoleTestRunner.dumpConsoleMessages();
TestRunner.completeTest();
})();
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment