mirror of
https://github.com/denoland/deno.git
synced 2025-10-01 14:41:15 +00:00
docs: end sentences with a period in markdown (#7813)
This commit is contained in:
parent
391eed42f4
commit
d0eb179132
26 changed files with 130 additions and 130 deletions
4
cli/dts/README.md
vendored
4
cli/dts/README.md
vendored
|
@ -5,8 +5,8 @@ currently (unfortunately) have a rather manual process for upgrading TypeScript.
|
|||
It works like this currently:
|
||||
|
||||
1. Checkout typescript repo in a seperate directory.
|
||||
2. Copy typescript.js into Deno repo
|
||||
3. Copy d.ts files into dts directory
|
||||
2. Copy typescript.js into Deno repo.
|
||||
3. Copy d.ts files into dts directory.
|
||||
|
||||
So that might look something like this:
|
||||
|
||||
|
|
|
@ -22,14 +22,14 @@ Some Web APIs are using ops under the hood, eg. `console`, `performance`.
|
|||
## Implemented Web APIs
|
||||
|
||||
- [Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob): for
|
||||
representing opaque binary data
|
||||
representing opaque binary data.
|
||||
- [Console](https://developer.mozilla.org/en-US/docs/Web/API/Console): for
|
||||
logging purposes
|
||||
logging purposes.
|
||||
- [CustomEvent](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent),
|
||||
[EventTarget](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget)
|
||||
and
|
||||
[EventListener](https://developer.mozilla.org/en-US/docs/Web/API/EventListener):
|
||||
to work with DOM events
|
||||
to work with DOM events.
|
||||
- **Implementation notes:** There is no DOM hierarchy in Deno, so there is no
|
||||
tree for Events to bubble/capture through.
|
||||
- [fetch](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch),
|
||||
|
@ -37,23 +37,23 @@ Some Web APIs are using ops under the hood, eg. `console`, `performance`.
|
|||
[Response](https://developer.mozilla.org/en-US/docs/Web/API/Response),
|
||||
[Body](https://developer.mozilla.org/en-US/docs/Web/API/Body) and
|
||||
[Headers](https://developer.mozilla.org/en-US/docs/Web/API/Headers): modern
|
||||
Promise-based HTTP Request API
|
||||
Promise-based HTTP Request API.
|
||||
- [FormData](https://developer.mozilla.org/en-US/docs/Web/API/FormData): access
|
||||
to a `multipart/form-data` serialization
|
||||
to a `multipart/form-data` serialization.
|
||||
- [Performance](https://developer.mozilla.org/en-US/docs/Web/API/Performance):
|
||||
retrieving current time with a high precision
|
||||
retrieving current time with a high precision.
|
||||
- [setTimeout](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout),
|
||||
[setInterval](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setInterval),
|
||||
[clearTimeout](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/clearTimeout):
|
||||
scheduling callbacks in future and
|
||||
[clearInterval](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/clearInterval)
|
||||
[clearInterval](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/clearInterval).
|
||||
- [Stream](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API) for
|
||||
creating, composing, and consuming streams of data
|
||||
creating, composing, and consuming streams of data.
|
||||
- [URL](https://developer.mozilla.org/en-US/docs/Web/API/URL) and
|
||||
[URLSearchParams](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams):
|
||||
to construct and parse URLSs
|
||||
to construct and parse URLSs.
|
||||
- [Worker](https://developer.mozilla.org/en-US/docs/Web/API/Worker): executing
|
||||
additional code in a separate thread
|
||||
additional code in a separate thread.
|
||||
- **Implementation notes:** Blob URLs are not supported, object ownership
|
||||
cannot be transferred, posted data is serialized to JSON instead of
|
||||
[structured cloning](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm).
|
||||
|
|
|
@ -26,13 +26,13 @@ unitTest({
|
|||
`unitTest` is is a wrapper function that enhances `Deno.test()` API in several
|
||||
ways:
|
||||
|
||||
- ability to conditionally skip tests using `UnitTestOptions.skip`
|
||||
- ability to conditionally skip tests using `UnitTestOptions.skip`.
|
||||
- ability to register required set of permissions for given test case using
|
||||
`UnitTestOptions.perms`
|
||||
`UnitTestOptions.perms`.
|
||||
- sanitization of resources - ensuring that tests close all opened resources
|
||||
preventing interference between tests
|
||||
preventing interference between tests.
|
||||
- sanitization of async ops - ensuring that tests don't leak async ops by
|
||||
ensuring that all started async ops are done before test finishes
|
||||
ensuring that all started async ops are done before test finishes.
|
||||
|
||||
## Running tests
|
||||
|
||||
|
@ -50,13 +50,13 @@ There are three ways to run `unit_test_runner.ts`:
|
|||
target/debug/deno run -A cli/tests/unit/unit_test_runner.ts --master
|
||||
|
||||
# By default all output of worker processes is discarded; for debug purposes
|
||||
# the --verbose flag preserves output from the worker
|
||||
# the --verbose flag preserves output from the worker.
|
||||
target/debug/deno run -A cli/tests/unit/unit_test_runner.ts --master --verbose
|
||||
|
||||
# Run subset of tests that don't require any permissions
|
||||
# Run subset of tests that don't require any permissions.
|
||||
target/debug/deno run --unstable cli/tests/unit/unit_test_runner.ts
|
||||
|
||||
# Run subset tests that require "net" and "read" permissions
|
||||
# Run subset tests that require "net" and "read" permissions.
|
||||
target/debug/deno run --unstable --allow-net --allow-read cli/tests/unit/unit_test_runner.ts
|
||||
|
||||
# "worker" mode communicates with parent using TCP socket on provided address;
|
||||
|
@ -64,7 +64,7 @@ target/debug/deno run --unstable --allow-net --allow-read cli/tests/unit/unit_te
|
|||
# directly, only be "master" process.
|
||||
target/debug/deno run -A cli/tests/unit/unit_test_runner.ts --worker --addr=127.0.0.1:4500 --perms=net,write,run
|
||||
|
||||
# Run specific tests
|
||||
# Run specific tests.
|
||||
target/debug/deno run --unstable --allow-net cli/tests/unit/unit_test_runner.ts -- netTcpListenClose
|
||||
|
||||
RUST_BACKTRACE=1 cargo run -- run --unstable --allow-read --allow-write cli/tests/unit/unit_test_runner.ts -- netUnixDialListen
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue