aboutsummaryrefslogtreecommitdiff
path: root/test/common.js
diff options
context:
space:
mode:
authorOleg Efimov <efimovov@gmail.com>2010-12-05 22:15:30 +0300
committerRyan Dahl <ry@tinyclouds.org>2010-12-05 15:41:58 -0800
commit0665f0271e71270dc23ec5231b245adfe709a49f (patch)
tree5679d97d06ac451bf33d60c17bbdcb57967907da /test/common.js
parent47c40bf18d393654b4f1d64ad386486c3f248942 (diff)
downloadandroid-node-v8-0665f0271e71270dc23ec5231b245adfe709a49f.tar.gz
android-node-v8-0665f0271e71270dc23ec5231b245adfe709a49f.tar.bz2
android-node-v8-0665f0271e71270dc23ec5231b245adfe709a49f.zip
GJSLint all simple tests exclude http-*, url, path
Diffstat (limited to 'test/common.js')
-rw-r--r--test/common.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/common.js b/test/common.js
index 68369a9c44..011f3d7a6f 100644
--- a/test/common.js
+++ b/test/common.js
@@ -12,7 +12,7 @@ var util = require('util');
for (var i in util) exports[i] = util[i];
//for (var i in exports) global[i] = exports[i];
-function protoCtrChain (o) {
+function protoCtrChain(o) {
var result = [];
for (; o; o = o.__proto__) { result.push(o.constructor); }
return result.join();
@@ -29,16 +29,16 @@ exports.indirectInstanceOf = function(obj, cls) {
// Turn this off if the test should not check for global leaks.
exports.globalCheck = true;
-process.on('exit', function () {
+process.on('exit', function() {
if (!exports.globalCheck) return;
- var knownGlobals = [ setTimeout,
- setInterval,
- clearTimeout,
- clearInterval,
- console,
- Buffer,
- process,
- global ];
+ var knownGlobals = [setTimeout,
+ setInterval,
+ clearTimeout,
+ clearInterval,
+ console,
+ Buffer,
+ process,
+ global];
for (var x in global) {
var found = false;
@@ -51,7 +51,7 @@ process.on('exit', function () {
}
if (!found) {
- console.error("Unknown global: %s", x);
+ console.error('Unknown global: %s', x);
exports.assert.ok(false);
}
}