Name Description Size Coverage
collect_garbage.ts eslint-disable-next-line @typescript-eslint/no-explicit-any 1555 -
colors.ts The interface used for formatting strings to contain color metadata. Use the interface properties to construct a style, then use the `(s: string): string` function to format the provided string with the given style. 3577 -
crc32.ts @param str the input string @returns the CRC32 of the input string @see https://en.wikipedia.org/wiki/Cyclic_redundancy_check#CRC-32_algorithm 3816 -
data_tables.ts @returns a new Record from `objects`, using the string returned by Object.toString() as the keys and the objects as the values. 4873 -
navigator_gpu.ts Finds and returns the `navigator.gpu` object (or equivalent, for non-browser implementations). Throws an exception if not found. 7779 -
parse_imports.ts Parses all the paths of the typescript `import` statements from content @param path the current path of the file @param content the file content @returns the list of import paths 1018 -
preprocessor.ts A simple template-based, non-line-based preprocessor implementing if/elif/else/endif. @example ``` const shader = pp` ${pp._if(expr)} const x: ${type} = ${value}; ${pp._elif(expr)} ${pp.__if(expr)} ... ${pp.__else} ... ${pp.__endif} ${pp._endif}`; ``` @param strings - The array of constant string chunks of the template string. @param ...values - The array of interpolated `${}` values within the template string. 4119 -
timeout.ts Defined by WPT. Like `setTimeout`, but applies a timeout multiplier for slow test systems. 343 -
types.ts Forces a type to resolve its type definitions, to make it readable/debuggable. 3840 -
util.ts Error with arbitrary `extra` data attached, for debugging. The extra data is omitted if not running the test in debug mode (`?debug=1`). 16894 -
wpt_reftest_wait.ts Remove the `reftest-wait` class on the document element. The reftest runner will wait with taking a screenshot while this class is present. See https://web-platform-tests.org/writing-tests/reftests.html#controlling-when-comparison-occurs 715 -