chromium/third_party/blink/web_tests/inspector-protocol/page/reload-dataurl.js

(async function(/** @type {import('test_runner').TestRunner} */ testRunner) {
  var {page, session, dp} = await testRunner.startBlank('Tests reloading pages with data URLs.');

  await dp.Page.enable();

  await dp.Page.navigate({url: 'data:text/html,hello!'});
  await session.evaluate(() => window.foo = 42);
  const loadEvent = dp.Page.onceLoadEventFired();
  await dp.Page.reload();
  await loadEvent;

  testRunner.log('Querying window.foo after reload (expect "undefined"): ' + (await session.evaluate(() => window.foo)));
  testRunner.completeTest();
})