Function: runTest()
Documentation / @wtf/project-wpt / run / runTest
function runTest(test, __namedParameters): Promise<FileResult>;Defined in: packages/project-wpt/src/run.ts:257
A test file of the checkout in folder, run in a context of its own, of the built-ins and the
caller’s globals: its harness, and each subtest, as testharness.js reports them. An error a
script throws as it is evaluated, or a timer’s callback throws, is the context’s error event,
and a rejection no one handles as it runs its unhandledrejection event, as a browser gives
them: the harness’s ERROR, but of a file that allows them by
setup({ allow_uncaught_exception: true }), and never an error of the process. A script that
does not load is a harness ERROR of no subtest.
Parameters
| Parameter | Type |
|---|---|
test | WptTest |
__namedParameters | RunOptions |
Returns
Promise<FileResult>
