Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9aeba48

Browse filesBrowse files
NathanBaulchtargos
authored andcommitted
test: fix typos
PR-URL: #55063 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent 86f7cb8 commit 9aeba48
Copy full SHA for 9aeba48

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

42 files changed

+43
-43
lines changed
Open diff view settings
Collapse file

‎test/addons/non-node-context/test-make-buffer.js‎

Copy file name to clipboardExpand all lines: test/addons/non-node-context/test-make-buffer.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const {
66
makeBufferInNewContext,
77
} = require(`./build/${common.buildType}/binding`);
88

9-
// Because the `Buffer` function and its protoype property only (currently)
9+
// Because the `Buffer` function and its prototype property only (currently)
1010
// exist in a Node.js instance’s main context, trying to create buffers from
1111
// another context throws an exception.
1212
assert.throws(
Collapse file

‎test/addons/openssl-providers/providers.cjs‎

Copy file name to clipboardExpand all lines: test/addons/openssl-providers/providers.cjs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const { getProviders } = require(`./build/${common.buildType}/binding`);
1313

1414
// For the providers defined here, the expectation is that the listed ciphers
1515
// and hash algorithms are only provided by the named provider. These are for
16-
// basic checks and are not intended to list evey cipher or hash algorithm
16+
// basic checks and are not intended to list every cipher or hash algorithm
1717
// supported by the provider.
1818
const providers = {
1919
'default': {
Collapse file

‎test/common/report.js‎

Copy file name to clipboardExpand all lines: test/common/report.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ function _validateContent(report, fields = []) {
251251
assert(typeof usage.free_memory, 'string');
252252
assert(typeof usage.total_memory, 'string');
253253
assert(typeof usage.available_memory, 'string');
254-
// This field may not exsit
254+
// This field may not exist
255255
if (report.resourceUsage.constrained_memory) {
256256
assert(typeof report.resourceUsage.constrained_memory, 'string');
257257
}
Collapse file

‎test/es-module/test-wasm-web-api.js‎

Copy file name to clipboardExpand all lines: test/es-module/test-wasm-web-api.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ function testCompileStreamingRejectionUsingFetch(responseCallback, rejection) {
173173
"'application/octet-stream'"
174174
});
175175

176-
// HTTP status code indiciating an error.
176+
// HTTP status code indicating an error.
177177
await testCompileStreamingRejectionUsingFetch((res) => {
178178
res.statusCode = 418;
179179
res.setHeader('Content-Type', 'application/wasm');
@@ -184,7 +184,7 @@ function testCompileStreamingRejectionUsingFetch(responseCallback, rejection) {
184184
message: /^WebAssembly response has status code 418$/
185185
});
186186

187-
// HTTP status code indiciating an error, but using a Response whose body is
187+
// HTTP status code indicating an error, but using a Response whose body is
188188
// a Buffer instead of calling fetch().
189189
await testCompileStreamingSuccess(() => {
190190
return Promise.resolve(new Response(simpleWasmBytes, {
Collapse file

‎test/fixtures/snapshot/marked.js‎

Copy file name to clipboardExpand all lines: test/fixtures/snapshot/marked.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@
617617
} else {
618618
indent = cap[2].search(/[^ ]/); // Find first non-space char
619619

620-
indent = cap[1].length + (indent > 4 ? 1 : indent); // intented code blocks after 4 spaces; indent is always 1
620+
indent = cap[1].length + (indent > 4 ? 1 : indent); // indented code blocks after 4 spaces; indent is always 1
621621

622622
itemContents = lines[0].slice(indent - cap[1].length);
623623
}
Collapse file

‎test/fixtures/test-runner/coverage-loader/hooks.mjs‎

Copy file name to clipboardExpand all lines: test/fixtures/test-runner/coverage-loader/hooks.mjs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const sources = {
2-
// Virtual file. Dosen't exist on disk
2+
// Virtual file. Doesn't exist on disk
33
"virtual.js": `
44
import { test } from 'node:test';
55
test('test', async () => {});
Collapse file

‎test/fixtures/wpt/FileAPI/support/send-file-form-helper.js‎

Copy file name to clipboardExpand all lines: test/fixtures/wpt/FileAPI/support/send-file-form-helper.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ const formPostFileUploadTest = ({
180180

181181
// Used to verify that the browser agrees with the test about
182182
// field value replacement and encoding independently of file system
183-
// idiosyncracies.
183+
// idiosyncrasies.
184184
form.append(Object.assign(document.createElement('input'), {
185185
type: 'hidden',
186186
name: 'filename',
Collapse file

‎test/fixtures/wpt/FileAPI/support/send-file-formdata-helper.js‎

Copy file name to clipboardExpand all lines: test/fixtures/wpt/FileAPI/support/send-file-formdata-helper.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const formDataPostFileUploadTest = ({
3434

3535
// Used to verify that the browser agrees with the test about
3636
// field value replacement and encoding independently of file system
37-
// idiosyncracies.
37+
// idiosyncrasies.
3838
formData.append("filename", fileBaseName);
3939

4040
// Same, but with name and value reversed to ensure field names
Collapse file

‎test/fixtures/wpt/dom/events/scrolling/overscroll-event-fired-to-window.html‎

Copy file name to clipboardExpand all lines: test/fixtures/wpt/dom/events/scrolling/overscroll-event-fired-to-window.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
function onOverscroll(event) {
3333
assert_false(event.cancelable);
34-
// overscroll events targetting document are bubbled to the window.
34+
// overscroll events targeting document are bubbled to the window.
3535
assert_true(event.bubbles);
3636
window_received_overscroll = true;
3737
}
Collapse file

‎test/fixtures/wpt/dom/events/scrolling/scroll_support.js‎

Copy file name to clipboardExpand all lines: test/fixtures/wpt/dom/events/scrolling/scroll_support.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const MAX_UNCHANGED_FRAMES = 20;
8888
function waitFor(condition, error_message = 'Reaches the maximum frames.') {
8989
return new Promise((resolve, reject) => {
9090
function tick(frames) {
91-
// We requestAnimationFrame either for MAX_FRAM frames or until condition
91+
// We requestAnimationFrame either for MAX_FRAME frames or until condition
9292
// is met.
9393
if (frames >= MAX_FRAME)
9494
reject(error_message);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.