From f56ca30bf05d558b6475ae800e096c69ce4ec04a Mon Sep 17 00:00:00 2001 From: Benjamin Fleischer Date: Sun, 5 Feb 2017 19:18:46 -0600 Subject: benchmark,build,doc,lib,src,test: correct typos PR-URL: https://github.com/nodejs/node/pull/11189 Reviewed-By: Brian White Reviewed-By: James M Snell Reviewed-By: Michael Dawson Reviewed-By: Sakthipriyan Vairamani --- test/internet/test-dgram-broadcast-multi-process.js | 2 +- test/parallel/test-child-process-fork-dgram.js | 2 +- test/parallel/test-cluster-message.js | 2 +- test/parallel/test-cluster-setup-master-multiple.js | 2 +- test/parallel/test-crypto-binary-default.js | 4 ++-- test/parallel/test-crypto-cipheriv-decipheriv.js | 4 ++-- test/parallel/test-event-emitter-add-listeners.js | 12 ++++++------ test/parallel/test-fs-access.js | 4 ++-- test/parallel/test-process-no-deprecation.js | 2 +- test/parallel/test-stream-readable-needReadable.js | 2 +- ...timers-socket-timeout-removes-other-socket-unref-timer.js | 2 +- test/parallel/test-tls-check-server-identity.js | 2 +- 12 files changed, 20 insertions(+), 20 deletions(-) (limited to 'test') diff --git a/test/internet/test-dgram-broadcast-multi-process.js b/test/internet/test-dgram-broadcast-multi-process.js index da3bd8cceb7..8414e558bab 100644 --- a/test/internet/test-dgram-broadcast-multi-process.js +++ b/test/internet/test-dgram-broadcast-multi-process.js @@ -227,7 +227,7 @@ if (process.argv[2] === 'child') { listenSocket.on('close', function() { //HACK: Wait to exit the process to ensure that the parent //process has had time to receive all messages via process.send() - //This may be indicitave of some other issue. + //This may be indicative of some other issue. setTimeout(function() { process.exit(); }, 1000); diff --git a/test/parallel/test-child-process-fork-dgram.js b/test/parallel/test-child-process-fork-dgram.js index 4447c54cae8..37b40dccd3f 100644 --- a/test/parallel/test-child-process-fork-dgram.js +++ b/test/parallel/test-child-process-fork-dgram.js @@ -63,7 +63,7 @@ if (process.argv[2] === 'child') { const timer = setInterval(function() { /* * Both the parent and the child got at least one message, - * test passed, clean up everyting. + * test passed, clean up everything. */ if (parentGotMessage && childGotMessage) { clearInterval(timer); diff --git a/test/parallel/test-cluster-message.js b/test/parallel/test-cluster-message.js index 5b537bbe73a..0b699093821 100644 --- a/test/parallel/test-cluster-message.js +++ b/test/parallel/test-cluster-message.js @@ -102,7 +102,7 @@ if (cluster.isWorker) { if (data.code === 'received message') { check('worker', data.echo === 'message from master'); } else { - throw new Error('wrong TCP message recived: ' + data); + throw new Error('wrong TCP message received: ' + data); } }); diff --git a/test/parallel/test-cluster-setup-master-multiple.js b/test/parallel/test-cluster-setup-master-multiple.js index 25cff7cb33e..c8fefddc39a 100644 --- a/test/parallel/test-cluster-setup-master-multiple.js +++ b/test/parallel/test-cluster-setup-master-multiple.js @@ -6,7 +6,7 @@ const cluster = require('cluster'); assert(cluster.isMaster); // The cluster.settings object is cloned even though the current implementation -// makes that unecessary. This is to make the test less fragile if the +// makes that unnecessary. This is to make the test less fragile if the // implementation ever changes such that cluster.settings is mutated instead of // replaced. function cheapClone(obj) { diff --git a/test/parallel/test-crypto-binary-default.js b/test/parallel/test-crypto-binary-default.js index 6ee3aeac36d..7dbd5e41639 100644 --- a/test/parallel/test-crypto-binary-default.js +++ b/test/parallel/test-crypto-binary-default.js @@ -477,7 +477,7 @@ function testCipher2(key) { function testCipher3(key, iv) { - // Test encyrption and decryption with explicit key and iv + // Test encryption and decryption with explicit key and iv const plaintext = '32|RmVZZkFUVmpRRkp0TmJaUm56ZU9qcnJkaXNNWVNpTTU*|iXmckfRWZBGWWELw' + 'eCBsThSsfUHLeRe0KCsK8ooHgxie0zOINpXxfZi/oNG7uq9JWFVCk70gfzQH8ZUJ' + @@ -496,7 +496,7 @@ function testCipher3(key, iv) { function testCipher4(key, iv) { - // Test encyrption and decryption with explicit key and iv + // Test encryption and decryption with explicit key and iv const plaintext = '32|RmVZZkFUVmpRRkp0TmJaUm56ZU9qcnJkaXNNWVNpTTU*|iXmckfRWZBGWWELw' + 'eCBsThSsfUHLeRe0KCsK8ooHgxie0zOINpXxfZi/oNG7uq9JWFVCk70gfzQH8ZUJ' + diff --git a/test/parallel/test-crypto-cipheriv-decipheriv.js b/test/parallel/test-crypto-cipheriv-decipheriv.js index 6f22dbe71af..a03a25d511f 100644 --- a/test/parallel/test-crypto-cipheriv-decipheriv.js +++ b/test/parallel/test-crypto-cipheriv-decipheriv.js @@ -9,7 +9,7 @@ if (!common.hasCrypto) { const crypto = require('crypto'); function testCipher1(key, iv) { - // Test encyrption and decryption with explicit key and iv + // Test encryption and decryption with explicit key and iv const plaintext = '32|RmVZZkFUVmpRRkp0TmJaUm56ZU9qcnJkaXNNWVNpTTU*|iXmckfRWZBGWWELw' + 'eCBsThSsfUHLeRe0KCsK8ooHgxie0zOINpXxfZi/oNG7uq9JWFVCk70gfzQH8ZUJ' + @@ -41,7 +41,7 @@ function testCipher1(key, iv) { function testCipher2(key, iv) { - // Test encyrption and decryption with explicit key and iv + // Test encryption and decryption with explicit key and iv const plaintext = '32|RmVZZkFUVmpRRkp0TmJaUm56ZU9qcnJkaXNNWVNpTTU*|iXmckfRWZBGWWELw' + 'eCBsThSsfUHLeRe0KCsK8ooHgxie0zOINpXxfZi/oNG7uq9JWFVCk70gfzQH8ZUJ' + diff --git a/test/parallel/test-event-emitter-add-listeners.js b/test/parallel/test-event-emitter-add-listeners.js index 33125daabdb..81af3fd50c8 100644 --- a/test/parallel/test-event-emitter-add-listeners.js +++ b/test/parallel/test-event-emitter-add-listeners.js @@ -5,8 +5,8 @@ const EventEmitter = require('events'); { const ee = new EventEmitter(); - const events_new_listener_emited = []; - const listeners_new_listener_emited = []; + const events_new_listener_emitted = []; + const listeners_new_listener_emitted = []; // Sanity check assert.strictEqual(ee.addListener, ee.on); @@ -16,8 +16,8 @@ const EventEmitter = require('events'); if (event === 'newListener') return; - events_new_listener_emited.push(event); - listeners_new_listener_emited.push(listener); + events_new_listener_emitted.push(event); + listeners_new_listener_emitted.push(listener); }); const hello = common.mustCall(function(a, b) { @@ -33,8 +33,8 @@ const EventEmitter = require('events'); ee.on('hello', hello); ee.once('foo', common.fail); - assert.deepStrictEqual(['hello', 'foo'], events_new_listener_emited); - assert.deepStrictEqual([hello, common.fail], listeners_new_listener_emited); + assert.deepStrictEqual(['hello', 'foo'], events_new_listener_emitted); + assert.deepStrictEqual([hello, common.fail], listeners_new_listener_emitted); ee.emit('hello', 'a', 'b'); } diff --git a/test/parallel/test-fs-access.js b/test/parallel/test-fs-access.js index b03bf572f6a..d5934dd614e 100644 --- a/test/parallel/test-fs-access.js +++ b/test/parallel/test-fs-access.js @@ -32,11 +32,11 @@ createFileWithPerms(readWriteFile, 0o666); * * There's not really any point in resetting the process' user id to 0 after * changing it to 'nobody', since in the case that the test runs without - * superuser priviledge, it is not possible to change its process user id to + * superuser privilege, it is not possible to change its process user id to * superuser. * * It can prevent the test from removing files created before the change of user - * id, but that's fine. In this case, it is the responsability of the + * id, but that's fine. In this case, it is the responsibility of the * continuous integration platform to take care of that. */ let hasWriteAccessForReadonlyFile = false; diff --git a/test/parallel/test-process-no-deprecation.js b/test/parallel/test-process-no-deprecation.js index 60394ea0d38..4d4dfa86fb6 100644 --- a/test/parallel/test-process-no-deprecation.js +++ b/test/parallel/test-process-no-deprecation.js @@ -1,7 +1,7 @@ 'use strict'; // Flags: --no-warnings -// The --no-warnings flag only supresses writing the warning to stderr, not the +// The --no-warnings flag only suppresses writing the warning to stderr, not the // emission of the corresponding event. This test file can be run without it. const common = require('../common'); diff --git a/test/parallel/test-stream-readable-needReadable.js b/test/parallel/test-stream-readable-needReadable.js index 48229edd202..be397dc5dc5 100644 --- a/test/parallel/test-stream-readable-needReadable.js +++ b/test/parallel/test-stream-readable-needReadable.js @@ -74,7 +74,7 @@ const slowProducer = new Readable({ slowProducer.on('readable', common.mustCall(() => { if (slowProducer.read(8) === null) { - // The buffer doesn't have enough data, and the stream is not ened, + // The buffer doesn't have enough data, and the stream is not need, // we need to notify the reader when data arrives. assert.strictEqual(slowProducer._readableState.needReadable, true); } else { diff --git a/test/parallel/test-timers-socket-timeout-removes-other-socket-unref-timer.js b/test/parallel/test-timers-socket-timeout-removes-other-socket-unref-timer.js index f42144360b6..5d57bbaae00 100644 --- a/test/parallel/test-timers-socket-timeout-removes-other-socket-unref-timer.js +++ b/test/parallel/test-timers-socket-timeout-removes-other-socket-unref-timer.js @@ -25,7 +25,7 @@ const server = net.createServer(function onClient(client) { clients[1].end(); }); - // Use a delay that is higher than the lowest timer resolution accross all + // Use a delay that is higher than the lowest timer resolution across all // supported platforms, so that the two timers don't fire at the same time. clients[1].setTimeout(50); } diff --git a/test/parallel/test-tls-check-server-identity.js b/test/parallel/test-tls-check-server-identity.js index 5c89ef8bf4d..9439735ce06 100644 --- a/test/parallel/test-tls-check-server-identity.js +++ b/test/parallel/test-tls-check-server-identity.js @@ -177,7 +177,7 @@ const tests = [ error: 'Host: a.b.a.com. is not in the cert\'s altnames: ' + 'DNS:*b.a.com' }, - // Mutliple DNS names + // Multiple DNS names { host: 'a.b.a.com', cert: { subjectaltname: 'DNS:*b.a.com, DNS:a.b.a.com', -- cgit v1.2.3