summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/web-locks/bfcache/helpers.js
blob: 7997f982a8f748281c21e1be05c9c74407600fe2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
  );
}