doc: fix misplaced entries in test/common doc
One entry is placed in the wrong module and other entries are not in alphabetical order. PR-URL: https://github.com/nodejs/node/pull/20117 Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
This commit is contained in:
parent
f565bbb193
commit
52491529ba
@ -119,9 +119,6 @@ Tests whether `name`, `expected`, and `code` are part of a raised warning. If
|
|||||||
an expected warning does not have a code then `common.noWarnCode` can be used
|
an expected warning does not have a code then `common.noWarnCode` can be used
|
||||||
to indicate this.
|
to indicate this.
|
||||||
|
|
||||||
### noWarnCode
|
|
||||||
See `common.expectWarning()` for usage.
|
|
||||||
|
|
||||||
### fileExists(pathname)
|
### fileExists(pathname)
|
||||||
* pathname [<string>]
|
* pathname [<string>]
|
||||||
* return [<boolean>]
|
* return [<boolean>]
|
||||||
@ -147,13 +144,11 @@ consisting of all `ArrayBufferView` and an `ArrayBuffer`.
|
|||||||
|
|
||||||
Returns the file name and line number for the provided Function.
|
Returns the file name and line number for the provided Function.
|
||||||
|
|
||||||
### runWithInvalidFD(func)
|
### getTTYfd()
|
||||||
* `func` [<Function>]
|
|
||||||
|
|
||||||
Runs `func` with an invalid file descriptor that is an unsigned integer and
|
Attempts to get a valid TTY file descriptor. Returns `-1` if it fails.
|
||||||
can be used to trigger `EBADF` as the first argument. If no such file
|
|
||||||
descriptor could be generated, a skip message will be printed and the `func`
|
The TTY file descriptor is assumed to be capable of being writable.
|
||||||
will not be run.
|
|
||||||
|
|
||||||
### globalCheck
|
### globalCheck
|
||||||
* [<boolean>]
|
* [<boolean>]
|
||||||
@ -328,6 +323,9 @@ Returns `true` if the exit code `exitCode` and/or signal name `signal` represent
|
|||||||
the exit code and/or signal name of a node process that aborted, `false`
|
the exit code and/or signal name of a node process that aborted, `false`
|
||||||
otherwise.
|
otherwise.
|
||||||
|
|
||||||
|
### noWarnCode
|
||||||
|
See `common.expectWarning()` for usage.
|
||||||
|
|
||||||
### opensslCli
|
### opensslCli
|
||||||
* [<boolean>]
|
* [<boolean>]
|
||||||
|
|
||||||
@ -369,6 +367,14 @@ original state after calling [`common.hijackStdOut()`][].
|
|||||||
|
|
||||||
Path to the 'root' directory. either `/` or `c:\\` (windows)
|
Path to the 'root' directory. either `/` or `c:\\` (windows)
|
||||||
|
|
||||||
|
### runWithInvalidFD(func)
|
||||||
|
* `func` [<Function>]
|
||||||
|
|
||||||
|
Runs `func` with an invalid file descriptor that is an unsigned integer and
|
||||||
|
can be used to trigger `EBADF` as the first argument. If no such file
|
||||||
|
descriptor could be generated, a skip message will be printed and the `func`
|
||||||
|
will not be run.
|
||||||
|
|
||||||
### skip(msg)
|
### skip(msg)
|
||||||
* `msg` [<string>]
|
* `msg` [<string>]
|
||||||
|
|
||||||
@ -695,12 +701,6 @@ The realpath of the testing temporary directory.
|
|||||||
|
|
||||||
Deletes and recreates the testing temporary directory.
|
Deletes and recreates the testing temporary directory.
|
||||||
|
|
||||||
### getTTYfd()
|
|
||||||
|
|
||||||
Attempts to get a valid TTY file descriptor. Returns `-1` if it fails.
|
|
||||||
|
|
||||||
The TTY file descriptor is assumed to be capable of being writable.
|
|
||||||
|
|
||||||
## WPT Module
|
## WPT Module
|
||||||
|
|
||||||
The wpt.js module is a port of parts of
|
The wpt.js module is a port of parts of
|
||||||
|
Loading…
x
Reference in New Issue
Block a user