Debian Codegraph @

testing/web-platform/mozilla/tests/webtransport/bfcache/helpers.js

raw
1 export function runWebTransportBfcacheTest(params, description) {
2 runBfcacheTest(
3 {
4 // due to the baseurl issue, this would try to load the scripts from
5 // the main wpt test directory
6 // scripts: ["/webtransport/resources/helpers.js"],
7 openFunc: url =>
8 window.open(
9 url + `&prefix=${location.pathname}-${description}`,
10 "_blank",
11 "noopener"
12 ),
13 ...params,
14 },
15 description
16 );
17 }