node/test/wpt/test-webstorage.js
cjihrig 3d09e579d3 deps,lib,src: add experimental web storage
This commit introduces an experimental implementation of the Web
Storage API using SQLite as the backing data store.

PR-URL: https://github.com/nodejs/node/pull/52435
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
2024-06-14 18:40:04 +00:00

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();