test: improve the WPT runner and rename test files
In preparation of porting other parts of WPT into test/wpt
(I am currently working on performance-timeline and encoding).
test: remove reference to whatwg in file names under test/wpt
WPT covers standards in both W3C and WHATWG, as such it would be strange to make this disparity explicit in our file names (e.g. when testing standards that are solely in W3C, like performance-timeline). Remove the reference to WHATWG will also make the file names shorter.
Refs: https://github.com/nodejs/node/issues/24823
test: improve WPT runner name matching
This patch:
- Support wildcards(*) in WPT runner name matching (needed by e.g. encoding where all the tests requires i18n support in the build)
- Print failure reasons when encountering an expected failure
- Fix a bug in copyGlobalsFromObject (previously it copies
properties from
global
instead of the givenobj
)
Previously an expected failure is printed as
[EXPECTED_FAILURE] response.formData() with input: %61+%4d%4D=
Now it is printed as
[EXPECTED_FAILURE] response.formData() with input: %61+%4d%4D=
missing Request and Response
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines