diff options
Diffstat (limited to 'cli')
-rw-r--r-- | cli/dts/README.md | 4 | ||||
-rw-r--r-- | cli/rt/README.md | 20 | ||||
-rw-r--r-- | cli/tests/unit/README.md | 16 |
3 files changed, 20 insertions, 20 deletions
diff --git a/cli/dts/README.md b/cli/dts/README.md index f37c903df..006282a90 100644 --- a/cli/dts/README.md +++ b/cli/dts/README.md @@ -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: diff --git a/cli/rt/README.md b/cli/rt/README.md index f73163df2..b17fa22e5 100644 --- a/cli/rt/README.md +++ b/cli/rt/README.md @@ -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). diff --git a/cli/tests/unit/README.md b/cli/tests/unit/README.md index e15ad7080..4d70ada78 100644 --- a/cli/tests/unit/README.md +++ b/cli/tests/unit/README.md @@ -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 |