chromium/third_party/blink/web_tests/external/wpt/web-locks/bfcache/helpers.js

export function runWebLocksBfcacheTest(params, description) {
  runBfcacheTest(
    {
      scripts: ["/web-locks/resources/helpers.js"],
      openFunc: url =>
        window.open(
          url + `&prefix=${location.pathname}-${description}`,
          "_blank",
          "noopener"
        ),
      ...params,
    },
    description
  );
}