diff --git a/test/common/README.md b/test/common/README.md index 009263a7c4fd0b..515e92325edb4d 100644 --- a/test/common/README.md +++ b/test/common/README.md @@ -1027,11 +1027,15 @@ The `tmpdir` module supports the use of a temporary directory for testing. The realpath of the testing temporary directory. -### `url` +### `fileURL([...paths])` -* [\][] +* `...paths` [\][] +* return [\][] + +Resolves a sequence of paths into absolute url in the temporary directory. -The absolute url of the testing temporary directory with trailing `/`. +When called without arguments, returns absolute url of the testing +temporary directory with explicit trailing `/`. ### `refresh(useSpawn)` @@ -1098,6 +1102,7 @@ See [the WPT tests README][] for details. []: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function []: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object []: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp +[]: https://developer.mozilla.org/en-US/docs/Web/API/URL []: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Data_types []: https://github.com/tc39/proposal-bigint []: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type