summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorVeres Lajos <vlajos@gmail.com>2013-06-12 23:51:17 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2013-06-13 13:33:06 +0200
commit9a4e5937ee9167430fbe4b9b794b82673bd2c833 (patch)
treefdbfd5b8e02d04606f7110d7264f141a478d9707 /test
parent884b25356f20cd95412d86a413283c98d0ac5ed2 (diff)
downloadnode-9a4e5937ee9167430fbe4b9b794b82673bd2c833.tar.gz
test: minor typo fixes
Diffstat (limited to 'test')
-rw-r--r--test/simple/test-child-process-fork-net.js12
-rw-r--r--test/simple/test-cluster-disconnect.js4
-rw-r--r--test/simple/test-http-client-upload-buf.js6
-rw-r--r--test/simple/test-http-set-timeout.js2
-rw-r--r--test/simple/test-repl-tab-complete.js4
5 files changed, 14 insertions, 14 deletions
diff --git a/test/simple/test-child-process-fork-net.js b/test/simple/test-child-process-fork-net.js
index 39b22d2ab..feb2588fe 100644
--- a/test/simple/test-child-process-fork-net.js
+++ b/test/simple/test-child-process-fork-net.js
@@ -180,17 +180,17 @@ if (process.argv[2] === 'child') {
};
// create server and send it to child
- var serverSucess = false;
- var socketSucess = false;
+ var serverSuccess = false;
+ var socketSuccess = false;
child.on('message', function onReady(msg) {
if (msg.what !== 'ready') return;
child.removeListener('message', onReady);
testServer(function() {
- serverSucess = true;
+ serverSuccess = true;
testSocket(function() {
- socketSucess = true;
+ socketSuccess = true;
child.kill();
});
});
@@ -198,8 +198,8 @@ if (process.argv[2] === 'child') {
});
process.on('exit', function() {
- assert.ok(serverSucess);
- assert.ok(socketSucess);
+ assert.ok(serverSuccess);
+ assert.ok(socketSuccess);
});
}
diff --git a/test/simple/test-cluster-disconnect.js b/test/simple/test-cluster-disconnect.js
index 5b50261a2..8fbdb9338 100644
--- a/test/simple/test-cluster-disconnect.js
+++ b/test/simple/test-cluster-disconnect.js
@@ -56,8 +56,8 @@ if (cluster.isWorker) {
var done = 0;
for (var i = 0, l = servers; i < l; i++) {
- testConnection(common.PORT + i, function(sucess) {
- assert.ok(sucess);
+ testConnection(common.PORT + i, function(success) {
+ assert.ok(success);
done += 1;
if (done === servers) {
cb();
diff --git a/test/simple/test-http-client-upload-buf.js b/test/simple/test-http-client-upload-buf.js
index 73e07e7f9..d607ea88b 100644
--- a/test/simple/test-http-client-upload-buf.js
+++ b/test/simple/test-http-client-upload-buf.js
@@ -24,7 +24,7 @@ var assert = require('assert');
var http = require('http');
var N = 1024;
-var bytesRecieved = 0;
+var bytesReceived = 0;
var server_req_complete = false;
var client_res_complete = false;
@@ -32,7 +32,7 @@ var server = http.createServer(function(req, res) {
assert.equal('POST', req.method);
req.on('data', function(chunk) {
- bytesRecieved += chunk.length;
+ bytesReceived += chunk.length;
});
req.on('end', function() {
@@ -68,7 +68,7 @@ server.on('listening', function() {
});
process.on('exit', function() {
- assert.equal(N, bytesRecieved);
+ assert.equal(N, bytesReceived);
assert.equal(true, server_req_complete);
assert.equal(true, client_res_complete);
});
diff --git a/test/simple/test-http-set-timeout.js b/test/simple/test-http-set-timeout.js
index 1feb946f7..01d182b34 100644
--- a/test/simple/test-http-set-timeout.js
+++ b/test/simple/test-http-set-timeout.js
@@ -38,7 +38,7 @@ server.listen(common.PORT, function() {
console.log('Server running at http://127.0.0.1:' + common.PORT + '/');
var errorTimer = setTimeout(function() {
- throw new Error('Timeout was not sucessful');
+ throw new Error('Timeout was not successful');
}, 2000);
var x = http.get({port: common.PORT, path: '/'});
diff --git a/test/simple/test-repl-tab-complete.js b/test/simple/test-repl-tab-complete.js
index 4e9df6b63..591cd32e9 100644
--- a/test/simple/test-repl-tab-complete.js
+++ b/test/simple/test-repl-tab-complete.js
@@ -108,7 +108,7 @@ testMe.complete('inner.o', function(error, data) {
putIn.run(['.clear']);
// Tab Complete will return a complex local variable even if the function
-// has paramaters
+// has parameters
putIn.run([
'var top = function (one, two) {',
'var inner = {',
@@ -137,7 +137,7 @@ testMe.complete('inner.o', function(error, data) {
putIn.run(['.clear']);
// currently does not work, but should not break note the inner function
-// def has the params and { on a seperate line
+// def has the params and { on a separate line
putIn.run([
'var top = function () {',
'r = function test (',