Name Description Size Coverage
.eslintrc.json 409 -
checklist.ts 5172 -
crawl.ts 6943 -
dev_server.ts not used 6875 -
gen_cache.ts @returns a list of all the files under 'dir' that has the given extension @param dir the directory to search @param ext the extension of the files to find 8481 -
gen_listings.ts 1352 -
gen_listings_and_webworkers.ts /*.as_worker.js for every .spec.js file. (Note {suite}/webworker/ is reserved for this purpose.) Example: tools/gen_listings_and_webworkers gen/ src/unittests/ src/webgpu/ Options: --help Print this message and exit. `); process.exit(rc); } const argv = process.argv; if (argv.indexOf('--help') !== -1) { usage(0); } { // Ignore old argument that is now the default const i = argv.indexOf('--no-validate'); if (i !== -1) { argv.splice(i, 1); } } if (argv.length < 4) { usage(0); } const myself = 'src/common/tools/gen_listings_and_webworkers.ts'; const outDir = argv[2]; for (const suiteDir of argv.slice(3)) { // Run concurrently for each suite (might be a tiny bit more efficient) void crawl(suiteDir).then(listing => { const suite = path.basename(suiteDir); // Write listing.js const outFile = path.normalize(path.join(outDir, `${suite}/listing.js`)); fs.mkdirSync(path.join(outDir, suite), { recursive: true }); fs.writeFileSync( outFile, `\ // AUTO-GENERATED - DO NOT EDIT. See ${myself}. export const listing = ${JSON.stringify(listing, undefined, 2)}; ` ); // Write suite/webworker/* 2487 -
gen_wpt_cts_html.ts Test suite to generate from. 13405 -
image_utils.ts 1789 -
merge_listing_times.ts 5598 -
run_wpt_ref_tests.ts This is workaround for a bug in Chrome. The bug is when in emulation mode Chrome lets you set a devicePixelRatio but Chrome still renders in the actual devicePixelRatio, at least on MacOS. So, we compute the ratio and then use that. 13645 -
setup-ts-in-node.js 1602 -
validate.ts 1463 -
version.ts eslint-disable-next-line n/no-restricted-require 320 -