mirror of https://github.com/nodejs/node.git
17 lines
434 B
JavaScript
17 lines
434 B
JavaScript
'use strict';
|
|
const tmpdir = require('../common/tmpdir');
|
|
const { WPTRunner } = require('../common/wpt');
|
|
const { join } = require('node:path');
|
|
const runner = new WPTRunner('webstorage', { concurrency: 1 });
|
|
|
|
tmpdir.refresh();
|
|
|
|
runner.setFlags([
|
|
'--experimental-webstorage',
|
|
'--localstorage-file', join(tmpdir.path, 'wpt-tests.localstorage'),
|
|
]);
|
|
runner.setInitScript(`
|
|
globalThis.window = globalThis;
|
|
`);
|
|
runner.runJsTests();
|