mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 18:25:13 +08:00
Discover WPT tasks through their existing JavaScript drivers so the Python runner can schedule, report, and rerun generated paths. Assisted-by: Codex Signed-off-by: Filip Skokan <panva.ip@gmail.com> PR-URL: https://github.com/nodejs/node/pull/65984 Fixes: https://github.com/nodejs/node/issues/51854 Reviewed-By: Aviv Keller <me@aviv.sh> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
18 lines
503 B
JavaScript
18 lines
503 B
JavaScript
'use strict';
|
|
const { skipIfSQLiteMissing } = require('../common');
|
|
skipIfSQLiteMissing();
|
|
const tmpdir = require('../common/tmpdir');
|
|
const { WPTRunner } = require('../common/wpt');
|
|
const { join } = require('node:path');
|
|
const runner = new WPTRunner('webstorage', { concurrency: 1 });
|
|
|
|
if (!runner.isListing) tmpdir.refresh();
|
|
|
|
runner.setFlags([
|
|
'--localstorage-file', join(tmpdir.path, 'wpt-tests.localstorage'),
|
|
]);
|
|
runner.setInitScript(`
|
|
globalThis.window = globalThis;
|
|
`);
|
|
runner.runJsTests();
|