chromium/third_party/blink/web_tests/http/tests/inspector-protocol/trust-tokens/trust-token-params-iframe.js

(async function(/** @type {import('test_runner').TestRunner} */ testRunner) {
  const {page, dp} = await testRunner.startBlank(
      `Check that PrivateTokenParams are included when an iframe requests a private token'`);

  await dp.Network.enable();
  await dp.Network.onRequestWillBeSent(event => {
    const privateTokenParams = event.params.request.trustTokenParams;
    if (privateTokenParams) {
      testRunner.log(`Included privateTokenParams in request: ${JSON.stringify(privateTokenParams)}`);
    } else {
      testRunner.log(`Main frame navigation not expected to contain privateTokenParams.`);
    }
  });

  await page.navigate('https://devtools.test:8443/inspector-protocol/resources/iframe-request-trust-token.html');

  testRunner.completeTest();
})