chromium/third_party/blink/web_tests/http/tests/inspector-protocol/service-worker/tentative/static-router/network-router-info-mainresource-network.js

(async function(/** @type {import('test_runner').TestRunner} */ testRunner) {
  var {page, session, dp} = await testRunner.startURL(
      'resources/simple.html',
      'Verifies that the request head has static routing information on the main resource when the request fallbacks to the network.');
  const swHelper =
      (await testRunner.loadScript('../../resources/service-worker-helper.js'))(
          dp, session);

  await Promise.all([
    dp.Network.enable(),
    dp.Page.enable(),
  ]);

  await swHelper.installSWAndWaitForActivated(
      'service-worker-router-to-network.js');

  const responseReceivedPromise = dp.Network.onceResponseReceived();

  await dp.Page.reload();

  const responseReceived = await responseReceivedPromise;
  testRunner.log(responseReceived.params.response.serviceWorkerRouterInfo);

  testRunner.completeTest();
});