You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2013/03/04 20:32:52 UTC
[22/91] [abbrv] never ever check in node modules. baaad.
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/burrito/test/wrap.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/burrito/test/wrap.js b/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/burrito/test/wrap.js
deleted file mode 100644
index b9eda49..0000000
--- a/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/node_modules/burrito/test/wrap.js
+++ /dev/null
@@ -1,159 +0,0 @@
-var test = require('tap').test;
-var burrito = require('../');
-var vm = require('vm');
-
-test('preserve ternary parentheses', function (t) {
- var originalSource = '"anything" + (x ? y : z) + "anything"';
- var burritoSource = burrito(originalSource, function (node) {
- // do nothing. we just want to check that ternary parens are persisted
- });
-
- var ctxt = {
- x : false,
- y : 'y_'+~~(Math.random()*10),
- z : 'z_'+~~(Math.random()*10)
- };
-
- var expectedOutput = vm.runInNewContext(originalSource, ctxt);
- var burritoOutput = vm.runInNewContext(burritoSource, ctxt);
-
- t.equal(burritoOutput, expectedOutput);
-
- ctxt.x = true;
-
- expectedOutput = vm.runInNewContext(originalSource, ctxt);
- burritoOutput = vm.runInNewContext(burritoSource, ctxt);
-
- t.equal(burritoOutput, expectedOutput);
- t.end();
-});
-
-test('wrap calls', function (t) {
- t.plan(20);
- var src = burrito('f() && g(h())\nfoo()', function (node) {
- if (node.name === 'call') node.wrap('qqq(%s)');
- if (node.name === 'binary') node.wrap('bbb(%s)');
- t.ok(node.state);
- t.equal(this, node.state);
- });
-
- var times = { bbb : 0, qqq : 0 };
-
- var res = [];
- vm.runInNewContext(src, {
- bbb : function (x) {
- times.bbb ++;
- res.push(x);
- return x;
- },
- qqq : function (x) {
- times.qqq ++;
- res.push(x);
- return x;
- },
- f : function () { return true },
- g : function (h) {
- t.equal(h, 7);
- return h !== 7
- },
- h : function () { return 7 },
- foo : function () { return 'foo!' },
- });
-
- t.same(res, [
- true, // f()
- 7, // h()
- false, // g(h())
- false, // f() && g(h())
- 'foo!', // foo()
- ]);
- t.equal(times.bbb, 1);
- t.equal(times.qqq, 4);
- t.end();
-});
-
-test('wrap fn', function (t) {
- var src = burrito('f(g(h(5)))', function (node) {
- if (node.name === 'call') {
- node.wrap(function (s) {
- return 'z(' + s + ')';
- });
- }
- });
-
- var times = 0;
- t.equal(
- vm.runInNewContext(src, {
- f : function (x) { return x + 1 },
- g : function (x) { return x + 2 },
- h : function (x) { return x + 3 },
- z : function (x) {
- times ++;
- return x * 10;
- },
- }),
- (((((5 + 3) * 10) + 2) * 10) + 1) * 10
- );
- t.equal(times, 3);
- t.end();
-});
-
-test('binary string', function (t) {
- var src = 'z(x + y)';
- var context = {
- x : 3,
- y : 4,
- z : function (n) { return n * 10 },
- };
-
- var res = burrito.microwave(src, context, function (node) {
- if (node.name === 'binary') {
- node.wrap('%a*2 - %b*2');
- }
- });
-
- t.equal(res, 10 * (3*2 - 4*2));
- t.end();
-});
-
-test('binary fn', function (t) {
- var src = 'z(x + y)';
- var context = {
- x : 3,
- y : 4,
- z : function (n) { return n * 10 },
- };
-
- var res = burrito.microwave(src, context, function (node) {
- if (node.name === 'binary') {
- node.wrap(function (expr, a, b) {
- return '(' + a + ')*2 - ' + '(' + b + ')*2';
- });
- }
- });
-
- t.equal(res, 10 * (3*2 - 4*2));
- t.end();
-});
-
-test('intersperse', function (t) {
- var src = '(' + (function () {
- f();
- g();
- }).toString() + ')()';
-
- var times = { f : 0, g : 0, zzz : 0 };
-
- var context = {
- f : function () { times.f ++ },
- g : function () { times.g ++ },
- zzz : function () { times.zzz ++ },
- };
-
- burrito.microwave(src, context, function (node) {
- if (node.name === 'stat') node.wrap('{ zzz(); %s }');
- });
-
- t.same(times, { f : 1, g : 1, zzz : 3 });
- t.end();
-});
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/package.json
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/package.json b/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/package.json
deleted file mode 100644
index d118a1f..0000000
--- a/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/package.json
+++ /dev/null
@@ -1,40 +0,0 @@
-{
- "name": "bunker",
- "version": "0.1.2",
- "description": "code coverage in native javascript",
- "main": "index.js",
- "directories": {
- "lib": ".",
- "example": "example",
- "test": "test"
- },
- "dependencies": {
- "burrito": ">=0.2.5 <0.3"
- },
- "devDependencies": {
- "tap": "~0.2.4"
- },
- "scripts": {
- "test": "tap test/*.js"
- },
- "repository": {
- "type": "git",
- "url": "http://github.com/substack/node-bunker.git"
- },
- "keywords": [
- "code",
- "coverage"
- ],
- "author": {
- "name": "James Halliday",
- "email": "mail@substack.net",
- "url": "http://substack.net"
- },
- "license": "MIT/X11",
- "engine": {
- "node": ">=0.4"
- },
- "readme": "bunker\n======\n\nBunker is a module to calculate code coverage using native javascript\n[burrito](https://github.com/substack/node-burrito) AST trickery.\n\n[![build status](https://secure.travis-ci.org/substack/node-bunker.png)](http://travis-ci.org/substack/node-bunker)\n\n![code coverage](http://substack.net/images/code_coverage.png)\n\nexamples\n========\n\ntiny\n----\n\n````javascript\nvar bunker = require('bunker');\nvar b = bunker('var x = 0; for (var i = 0; i < 30; i++) { x++ }');\n\nvar counts = {};\n\nb.on('node', function (node) {\n if (!counts[node.id]) {\n counts[node.id] = { times : 0, node : node };\n }\n counts[node.id].times ++;\n});\n\nb.run();\n\nObject.keys(counts).forEach(function (key) {\n var count = counts[key];\n console.log(count.times + ' : ' + count.node.source());\n});\n````\n\noutput:\n\n $ node example/tiny.js \n 1 : var x=0;\n 31 : i<30\n 30 : i++\n 30 : x++;\n 30 : x++\n\nmethods\n=======\n\nvar b
unker = require('bunker');\n\nvar b = bunker(src)\n-------------------\n\nCreate a new bunker code coverageifier with some source `src`.\n\nThe bunker object `b` is an `EventEmitter` that emits `'node'` events with two\nparameters:\n\n* `node` - the [burrito](https://github.com/substack/node-burrito) node object\n* `stack` - the stack, [stackedy](https://github.com/substack/node-stackedy) style\n\nb.include(src)\n--------------\n\nInclude some source into the bunker.\n\nb.compile()\n-----------\n\nReturn the source wrapped with burrito.\n\nb.assign(context={})\n--------------------\n\nAssign the statement-tracking functions into `context`.\n\nb.run(context={})\n-----------------\n\nRun the source using `vm.runInNewContext()` with some `context`.\nThe statement-tracking functions will be added to `context` by `assign()`.\n",
- "_id": "bunker@0.1.2",
- "_from": "bunker@0.1.X"
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/test/cover.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/test/cover.js b/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/test/cover.js
deleted file mode 100644
index b04795d..0000000
--- a/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/test/cover.js
+++ /dev/null
@@ -1,36 +0,0 @@
-var test = require('tap').test;
-var bunker = require('../');
-var fs = require('fs');
-
-var src = fs.readdirSync(__dirname + '/src').reduce(function (acc, file) {
- acc[file] = fs.readFileSync(__dirname + '/src/' + file, 'utf8');
- return acc;
-}, {});
-
-test('cover', function (t) {
- t.plan(1);
-
- var b = bunker(src['cover.js']);
- var counts = {};
-
- b.on('node', function (node) {
- counts[node.name] = (counts[node.name] || 0) + 1;
- });
-
- b.run({
- setInterval : setInterval,
- clearInterval : function () {
- process.nextTick(function () {
- t.same(counts, {
- binary : 11,
- 'unary-postfix' : 11,
- 'var' : 2,
- call : 2, // setInterval and clearInterval
- stat : 1, // clearInterval
- });
- });
-
- return clearInterval.apply(this, arguments);
- },
- });
-});
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/test/return.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/test/return.js b/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/test/return.js
deleted file mode 100644
index 9be1700..0000000
--- a/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/test/return.js
+++ /dev/null
@@ -1,29 +0,0 @@
-var test = require('tap').test;
-var bunker = require('../');
-
-test('cover', function (t) {
- t.plan(1);
-
- var b = bunker('(' + function () {
- function foo () {}
- function bar () {}
-
- (function () {
- return foo();
- })();
- } + ')()');
- var counts = {};
-
- b.on('node', function (node) {
- counts[node.name] = (counts[node.name] || 0) + 1;
- });
- b.run();
-
- process.nextTick(function () {
- t.same(counts, {
- stat : 2,
- call : 2,
- return : 1,
- });
- });
-});
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/test/src/cover.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/test/src/cover.js b/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/test/src/cover.js
deleted file mode 100644
index e640151..0000000
--- a/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/node_modules/bunker/test/src/cover.js
+++ /dev/null
@@ -1,6 +0,0 @@
-var i = 0;
-var iv = setInterval(function () {
- if (i++ === 10) {
- clearInterval(iv);
- }
-}, 10);
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/package.json
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/package.json b/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/package.json
deleted file mode 100644
index cd7eb05..0000000
--- a/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/package.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "name": "runforcover",
- "version": "0.0.2",
- "description": "require plugin for js code coverage using bunker",
- "main": "index.js",
- "directories": {
- "lib": ".",
- "test": "test"
- },
- "dependencies": {
- "bunker": "0.1.X"
- },
- "scripts": {
- "test": "node test/index.js"
- },
- "repository": {
- "type": "git",
- "url": "http://github.com/chrisdickinson/node-runforcover.git"
- },
- "keywords": [
- "code",
- "coverage",
- "bunker"
- ],
- "author": {
- "name": "Chris Dickinson",
- "email": "chris@neversaw.us",
- "url": "http://neversaw.us"
- },
- "license": "new BSD",
- "engine": {
- "node": ">=0.4"
- },
- "readme": "runforcover\n======\n\nRunforcover is a require-hook library that uses node-bunker to provide code coverage data\nfor your unit test library, whatever it might be.\n\nmethods\n=======\nvar runforcover = require('runforcover');\n\nvar coverage = runforcover.cover([RegExp | path]);\n-------\n\nAttach runforcover to the global `require` object and patch `require.extensions['.js']` to\nprovide coverage metadata for all files required after this point. Returns a function\nobject that can be called to obtain a object keying files to `CoverageData` objects, with \na method for releasing control back to vanilla `require`. Usage:\n\n````javascript\n\nvar coverage = runforcover.cover(/.*/g);\n\nrequire('some/library');\n\ncoverage(function(coverageData) {\n // coverageData is an object keyed by filename.\n var stats = coverageData['/full/path/to/file.js'].stats()\n\n // the percentage of lines run versus total lines in file\n console.log(stats.percentage);\n\n // t
he number of missing lines\n console.log(stats.missing);\n\n // the number of lines run (seen)\n console.log(stats.seen);\n\n // an array of line objects representing 'missed' lines\n stats.lines;\n\n stats.lines.forEach(function(line) {\n // the line number of the line:\n console.log(line.number);\n\n // returns a string containing the source data for the line:\n console.log(line.source()); \n }); \n \n // return control back to the original require function\n coverage.release(); \n});\n````\n\nlicense\n=======\nnew BSD.\n",
- "_id": "runforcover@0.0.2",
- "_from": "runforcover@~0.0.2"
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/test/index.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/test/index.js b/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/test/index.js
deleted file mode 100644
index ea59662..0000000
--- a/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/test/index.js
+++ /dev/null
@@ -1 +0,0 @@
-require('./interface').coverageInterface()
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/test/interface.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/test/interface.js b/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/test/interface.js
deleted file mode 100644
index a6455ed..0000000
--- a/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/test/interface.js
+++ /dev/null
@@ -1,50 +0,0 @@
-var assert = require('assert');
-var runforcover = require('../');
-
-exports.coverageInterface = function() {
- assert.ok(runforcover.cover);
-
- var originalRequire = require.extensions['.js'];
-
- var coverage = runforcover.cover();
-
- assert.notEqual(originalRequire, require.extensions['.js']);
-
- var file = require('./src/coverage');
-
- coverage(function(coverageData) {
- assert.equal(Object.keys(coverageData).length, 1);
- assert.equal(Object.keys(coverageData)[0], __dirname + '/src/coverage.js');
-
- var fileCoverageData = coverageData[Object.keys(coverageData)[0]];
-
- assert.ok(fileCoverageData.stats);
- assert.ok(fileCoverageData.missing);
-
- var stats = fileCoverageData.stats();
-
- assert.ok(stats.percentage !== undefined);
- assert.ok(stats.lines !== undefined);
- assert.ok(stats.missing !== undefined);
- assert.ok(stats.seen !== undefined);
-
- assert.equal(stats.lines.length, 3);
- assert.equal(stats.lines[0].source(), ' if(a > 0) {');
- assert.equal(stats.lines[1].source(), ' return a + 1;');
- assert.equal(stats.lines[2].source(), ' return a - 1;');
-
- file.something(1);
- stats = fileCoverageData.stats();
-
- assert.equal(stats.lines.length, 1);
- assert.equal(stats.lines[0].source(), ' return a - 1;');
-
- file.something(-1);
- stats = fileCoverageData.stats();
-
- assert.equal(stats.lines.length, 0);
-
- coverage.release();
- assert.equal(require.extensions['.js'], originalRequire);
- });
-};
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/test/src/coverage.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/test/src/coverage.js b/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/test/src/coverage.js
deleted file mode 100644
index 5b88dfe..0000000
--- a/node_modules/nodeunit/node_modules/tap/node_modules/runforcover/test/src/coverage.js
+++ /dev/null
@@ -1,7 +0,0 @@
-exports.something = function(a) {
- if(a > 0) {
- return a + 1;
- } else {
- return a - 1;
- }
-};
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/node_modules/slide/README.md
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/node_modules/slide/README.md b/node_modules/nodeunit/node_modules/tap/node_modules/slide/README.md
deleted file mode 100644
index ed0905f..0000000
--- a/node_modules/nodeunit/node_modules/tap/node_modules/slide/README.md
+++ /dev/null
@@ -1,27 +0,0 @@
-# Slide - a tiny flow control library
-
-Callbacks are simple and easy if you keep the pattern consistent.
-
-Check out the [slide presentation](http://github.com/isaacs/slide-flow-control/raw/master/nodejs-controlling-flow.pdf).
-
-You'll laugh when you see how little code is actually in this thing.
-It's so not-enterprisey, you won't believe it. It does almost nothing,
-but it's super handy.
-
-I actually use an earlier version of this util in
-[a real world program](http://npmjs.org/).
-
-## Installation
-
-Just copy the files into your project, and use them that way, or
-you can do this:
-
- npm install slide
-
-and then:
-
- var asyncMap = require("slide").asyncMap
- , chain = require("slide").chain
- // use the power!
-
-Enjoy!
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/node_modules/slide/index.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/node_modules/slide/index.js b/node_modules/nodeunit/node_modules/tap/node_modules/slide/index.js
deleted file mode 100644
index 0a9277f..0000000
--- a/node_modules/nodeunit/node_modules/tap/node_modules/slide/index.js
+++ /dev/null
@@ -1 +0,0 @@
-module.exports=require("./lib/slide")
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/node_modules/slide/lib/async-map-ordered.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/node_modules/slide/lib/async-map-ordered.js b/node_modules/nodeunit/node_modules/tap/node_modules/slide/lib/async-map-ordered.js
deleted file mode 100644
index 5cca79a..0000000
--- a/node_modules/nodeunit/node_modules/tap/node_modules/slide/lib/async-map-ordered.js
+++ /dev/null
@@ -1,65 +0,0 @@
-
-throw new Error("TODO: Not yet implemented.")
-
-/*
-usage:
-
-Like asyncMap, but only can take a single cb, and guarantees
-the order of the results.
-*/
-
-module.exports = asyncMapOrdered
-
-function asyncMapOrdered (list, fn, cb_) {
- if (typeof cb_ !== "function") throw new Error(
- "No callback provided to asyncMapOrdered")
-
- if (typeof fn !== "function") throw new Error(
- "No map function provided to asyncMapOrdered")
-
- if (list === undefined || list === null) return cb_(null, [])
- if (!Array.isArray(list)) list = [list]
- if (!list.length) return cb_(null, [])
-
- var errState = null
- , l = list.length
- , a = l
- , res = []
- , resCount = 0
- , maxArgLen = 0
-
- function cb (index) { return function () {
- if (errState) return
- var er = arguments[0]
- var argLen = arguments.length
- maxArgLen = Math.max(maxArgLen, argLen)
- res[index] = argLen === 1 ? [er] : Array.apply(null, arguments)
-
- // see if any new things have been added.
- if (list.length > l) {
- var newList = list.slice(l)
- a += (list.length - l)
- var oldLen = l
- l = list.length
- process.nextTick(function () {
- newList.forEach(function (ar, i) { fn(ar, cb(i + oldLen)) })
- })
- }
-
- if (er || --a === 0) {
- errState = er
- cb_.apply(null, [errState].concat(flip(res, resCount, maxArgLen)))
- }
- }}
- // expect the supplied cb function to be called
- // "n" times for each thing in the array.
- list.forEach(function (ar) {
- steps.forEach(function (fn, i) { fn(ar, cb(i)) })
- })
-}
-
-function flip (res, resCount, argLen) {
- var flat = []
- // res = [[er, x, y], [er, x1, y1], [er, x2, y2, z2]]
- // return [[x, x1, x2], [y, y1, y2], [undefined, undefined, z2]]
-
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/node_modules/slide/lib/async-map.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/node_modules/slide/lib/async-map.js b/node_modules/nodeunit/node_modules/tap/node_modules/slide/lib/async-map.js
deleted file mode 100644
index 1ced158..0000000
--- a/node_modules/nodeunit/node_modules/tap/node_modules/slide/lib/async-map.js
+++ /dev/null
@@ -1,56 +0,0 @@
-
-/*
-usage:
-
-// do something to a list of things
-asyncMap(myListOfStuff, function (thing, cb) { doSomething(thing.foo, cb) }, cb)
-// do more than one thing to each item
-asyncMap(list, fooFn, barFn, cb)
-
-*/
-
-module.exports = asyncMap
-
-function asyncMap () {
- var steps = Array.prototype.slice.call(arguments)
- , list = steps.shift() || []
- , cb_ = steps.pop()
- if (typeof cb_ !== "function") throw new Error(
- "No callback provided to asyncMap")
- if (!list) return cb_(null, [])
- if (!Array.isArray(list)) list = [list]
- var n = steps.length
- , data = [] // 2d array
- , errState = null
- , l = list.length
- , a = l * n
- if (!a) return cb_(null, [])
- function cb (er) {
- if (errState) return
- var argLen = arguments.length
- for (var i = 1; i < argLen; i ++) if (arguments[i] !== undefined) {
- data[i - 1] = (data[i - 1] || []).concat(arguments[i])
- }
- // see if any new things have been added.
- if (list.length > l) {
- var newList = list.slice(l)
- a += (list.length - l) * n
- l = list.length
- process.nextTick(function () {
- newList.forEach(function (ar) {
- steps.forEach(function (fn) { fn(ar, cb) })
- })
- })
- }
-
- if (er || --a === 0) {
- errState = er
- cb_.apply(null, [errState].concat(data))
- }
- }
- // expect the supplied cb function to be called
- // "n" times for each thing in the array.
- list.forEach(function (ar) {
- steps.forEach(function (fn) { fn(ar, cb) })
- })
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/node_modules/slide/lib/bind-actor.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/node_modules/slide/lib/bind-actor.js b/node_modules/nodeunit/node_modules/tap/node_modules/slide/lib/bind-actor.js
deleted file mode 100644
index 6a37072..0000000
--- a/node_modules/nodeunit/node_modules/tap/node_modules/slide/lib/bind-actor.js
+++ /dev/null
@@ -1,16 +0,0 @@
-module.exports = bindActor
-function bindActor () {
- var args =
- Array.prototype.slice.call
- (arguments) // jswtf.
- , obj = null
- , fn
- if (typeof args[0] === "object") {
- obj = args.shift()
- fn = args.shift()
- if (typeof fn === "string")
- fn = obj[ fn ]
- } else fn = args.shift()
- return function (cb) {
- fn.apply(obj, args.concat(cb)) }
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/node_modules/slide/lib/chain.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/node_modules/slide/lib/chain.js b/node_modules/nodeunit/node_modules/tap/node_modules/slide/lib/chain.js
deleted file mode 100644
index 17b3711..0000000
--- a/node_modules/nodeunit/node_modules/tap/node_modules/slide/lib/chain.js
+++ /dev/null
@@ -1,20 +0,0 @@
-module.exports = chain
-var bindActor = require("./bind-actor.js")
-chain.first = {} ; chain.last = {}
-function chain (things, cb) {
- var res = []
- ;(function LOOP (i, len) {
- if (i >= len) return cb(null,res)
- if (Array.isArray(things[i]))
- things[i] = bindActor.apply(null,
- things[i].map(function(i){
- return (i===chain.first) ? res[0]
- : (i===chain.last)
- ? res[res.length - 1] : i }))
- if (!things[i]) return LOOP(i + 1, len)
- things[i](function (er, data) {
- if (er) return cb(er, res)
- if (data !== undefined) res = res.concat(data)
- LOOP(i + 1, len)
- })
- })(0, things.length) }
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/node_modules/slide/lib/slide.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/node_modules/slide/lib/slide.js b/node_modules/nodeunit/node_modules/tap/node_modules/slide/lib/slide.js
deleted file mode 100644
index 6e9ec23..0000000
--- a/node_modules/nodeunit/node_modules/tap/node_modules/slide/lib/slide.js
+++ /dev/null
@@ -1,3 +0,0 @@
-exports.asyncMap = require("./async-map")
-exports.bindActor = require("./bind-actor")
-exports.chain = require("./chain")
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/node_modules/slide/nodejs-controlling-flow.pdf
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/node_modules/slide/nodejs-controlling-flow.pdf b/node_modules/nodeunit/node_modules/tap/node_modules/slide/nodejs-controlling-flow.pdf
deleted file mode 100644
index ca12d60..0000000
Binary files a/node_modules/nodeunit/node_modules/tap/node_modules/slide/nodejs-controlling-flow.pdf and /dev/null differ
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/node_modules/slide/package.json
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/node_modules/slide/package.json b/node_modules/nodeunit/node_modules/tap/node_modules/slide/package.json
deleted file mode 100644
index 30210e5..0000000
--- a/node_modules/nodeunit/node_modules/tap/node_modules/slide/package.json
+++ /dev/null
@@ -1,30 +0,0 @@
-{
- "name": "slide",
- "version": "1.1.3",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me/"
- },
- "contributors": [
- {
- "name": "S. Sriram",
- "email": "ssriram@gmail.com",
- "url": "http://www.565labs.com"
- }
- ],
- "description": "A flow control lib small enough to fit on in a slide presentation. Derived live at Oak.JS",
- "main": "./lib/slide.js",
- "dependencies": {},
- "devDependencies": {},
- "engines": {
- "node": "*"
- },
- "repository": {
- "type": "git",
- "url": "git://github.com/isaacs/slide-flow-control.git"
- },
- "readme": "# Slide - a tiny flow control library\n\nCallbacks are simple and easy if you keep the pattern consistent.\n\nCheck out the [slide presentation](http://github.com/isaacs/slide-flow-control/raw/master/nodejs-controlling-flow.pdf).\n\nYou'll laugh when you see how little code is actually in this thing.\nIt's so not-enterprisey, you won't believe it. It does almost nothing,\nbut it's super handy.\n\nI actually use an earlier version of this util in\n[a real world program](http://npmjs.org/).\n\n## Installation\n\nJust copy the files into your project, and use them that way, or\nyou can do this:\n\n npm install slide\n\nand then:\n\n var asyncMap = require(\"slide\").asyncMap\n , chain = require(\"slide\").chain\n // use the power!\n\nEnjoy!\n",
- "_id": "slide@1.1.3",
- "_from": "slide@*"
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/node_modules/yamlish/LICENSE
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/node_modules/yamlish/LICENSE b/node_modules/nodeunit/node_modules/tap/node_modules/yamlish/LICENSE
deleted file mode 100644
index 187e8db..0000000
--- a/node_modules/nodeunit/node_modules/tap/node_modules/yamlish/LICENSE
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (c) 2011 Isaac Z. Schlueter <i...@izs.me>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of
-this software and associated documentation files (the "Software"), to deal in
-the Software without restriction, including without limitation the rights to
-use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
-of the Software, and to permit persons to whom the Software is furnished to do
-so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/node_modules/yamlish/README.md
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/node_modules/yamlish/README.md b/node_modules/nodeunit/node_modules/tap/node_modules/yamlish/README.md
deleted file mode 100644
index 954d063..0000000
--- a/node_modules/nodeunit/node_modules/tap/node_modules/yamlish/README.md
+++ /dev/null
@@ -1,20 +0,0 @@
-This is a thingie to parse the "yamlish" format used to serialize
-objects in the TAP format.
-
-It's like yaml, but just a tiny little bit smaller.
-
-Usage:
-
- var yamlish = require("yamlish")
- // returns a string like:
- /*
- some:
- object:
- - full
- - of
- pretty: things
- */
- yamlish.encode({some:{object:["full", "of"]}, pretty:"things"})
-
- // returns the object
- yamlish.decode(someYamlishString)
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/node_modules/yamlish/package.json
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/node_modules/yamlish/package.json b/node_modules/nodeunit/node_modules/tap/node_modules/yamlish/package.json
deleted file mode 100644
index 25f560b..0000000
--- a/node_modules/nodeunit/node_modules/tap/node_modules/yamlish/package.json
+++ /dev/null
@@ -1,30 +0,0 @@
-{
- "name": "yamlish",
- "description": "Parser/encoder for the yamlish format",
- "repository": {
- "type": "git",
- "url": "https://github.com/isaacs/yamlish"
- },
- "version": "0.0.5",
- "main": "yamlish.js",
- "keywords": [
- "yaml",
- "yamlish",
- "test",
- "anything",
- "protocol",
- "tap"
- ],
- "license": {
- "type": "MIT",
- "url": "http://github.com/isaacs/yamlish/raw/master/LICENSE"
- },
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me/"
- },
- "readme": "This is a thingie to parse the \"yamlish\" format used to serialize\nobjects in the TAP format.\n\nIt's like yaml, but just a tiny little bit smaller.\n\nUsage:\n\n var yamlish = require(\"yamlish\")\n // returns a string like:\n /*\n some:\n object:\n - full\n - of\n pretty: things\n */\n yamlish.encode({some:{object:[\"full\", \"of\"]}, pretty:\"things\"})\n\n // returns the object\n yamlish.decode(someYamlishString)\n",
- "_id": "yamlish@0.0.5",
- "_from": "yamlish@*"
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/node_modules/yamlish/yamlish.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/node_modules/yamlish/yamlish.js b/node_modules/nodeunit/node_modules/tap/node_modules/yamlish/yamlish.js
deleted file mode 100644
index dd8c370..0000000
--- a/node_modules/nodeunit/node_modules/tap/node_modules/yamlish/yamlish.js
+++ /dev/null
@@ -1,260 +0,0 @@
-exports.encode = encode
-exports.decode = decode
-
-var seen = []
-function encode (obj, indent) {
- var deep = arguments[2]
- if (!indent) indent = " "
-
- if (obj instanceof String ||
- Object.prototype.toString.call(obj) === "[object String]") {
- obj = obj.toString()
- }
-
- if (obj instanceof Number ||
- Object.prototype.toString.call(obj) === "[object Number]") {
- obj = obj.valueOf()
- }
-
- // take out the easy ones.
- switch (typeof obj) {
- case "string":
- obj = obj.trim()
- if (obj.indexOf("\n") !== -1) {
- return "|\n" + indent + obj.split(/\r?\n/).join("\n"+indent)
- } else {
- return (obj)
- }
-
- case "number":
- return obj.toString(10)
-
- case "function":
- return encode(obj.toString(), indent, true)
-
- case "boolean":
- return obj.toString()
-
- case "undefined":
- // fallthrough
- case "object":
- // at this point we know it types as an object
- if (!obj) return "~"
-
- if (obj instanceof Date ||
- Object.prototype.toString.call(obj) === "[object Date]") {
- return JSON.stringify("[Date " + obj.toISOString() + "]")
- }
-
- if (obj instanceof RegExp ||
- Object.prototype.toString.call(obj) === "[object RegExp]") {
- return JSON.stringify(obj.toString())
- }
-
- if (obj instanceof Boolean ||
- Object.prototype.toString.call(obj) === "[object Boolean]") {
- return obj.toString()
- }
-
- if (seen.indexOf(obj) !== -1) {
- return "[Circular]"
- }
- seen.push(obj)
-
- if (typeof Buffer === "function" &&
- typeof Buffer.isBuffer === "function" &&
- Buffer.isBuffer(obj)) return obj.inspect()
-
- if (obj instanceof Error) {
- var o = { name: obj.name
- , message: obj.message
- , type: obj.type }
-
- if (obj.code) o.code = obj.code
- if (obj.errno) o.errno = obj.errno
- if (obj.type) o.type = obj.type
- obj = o
- }
-
- var out = ""
-
- if (Array.isArray(obj)) {
- var out = "\n" + indent + "- " +obj.map(function (item) {
- return encode(item, indent + " ", true)
- }).join("\n"+indent + "- ")
- break
- }
-
- // an actual object
- var keys = Object.keys(obj)
- , niceKeys = keys.map(function (k) {
- return (k.match(/^[a-zA-Z0-9_]+$/) ? k : JSON.stringify(k)) + ": "
- })
- //console.error(keys, niceKeys, obj)
- var maxLength = Math.max.apply(Math, niceKeys.map(function (k) {
- return k.length
- }).concat(0))
- //console.error(niceKeys, maxLength)
-
- var spaces = new Array(maxLength + 1).join(" ")
-
- if (!deep) indent += " "
- out = "\n" + indent + keys.map(function (k, i) {
- var niceKey = niceKeys[i]
- return niceKey + spaces.substr(niceKey.length)
- + encode(obj[k], indent + " ", true)
- }).join("\n" + indent)
- break
-
- default: return ""
- }
- if (!deep) seen.length = 0
- return out
-}
-
-function decode (str) {
- var v = str.trim()
- , d
- , dateRe = /^\[Date ([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}(?::[0-9]{2})?(?:\.[0-9]{3})?(?:[A-Z]+)?)\]$/
-
- if (v === "~") return null
-
- try {
- var jp = JSON.parse(str)
- } catch (e) {
- var jp = ""
- }
-
- if (jp &&
- typeof jp === "string" &&
- (d = jp.match(dateRe)) &&
- (d = Date.parse(d[1]))) {
- return new Date(d)
- }
-
- if (typeof jp === "boolean") return jp
- if (v && !isNaN(v)) return parseInt(v, 10)
-
- // something interesting.
- var lines = str.split(/\r?\n/)
- // check if it's some kind of string or something.
- // if the first line is > or | then it's a wrapping indented string.
- // if the first line is blank, and there are many lines,
- // then it's an array or object.
- // otherwise, it's just ""
- var first = lines.shift().trim()
- if (lines.length) lines = undent(lines)
- switch (first) {
- case "|":
- return lines.join("\n")
- case ">":
- return lines.join("\n").split(/\n{2,}/).map(function (l) {
- return l.split(/\n/).join(" ")
- }).join("\n")
- default:
- if (!lines.length) return first
- // array or object.
- // the first line will be either "- value" or "key: value"
- return lines[0].charAt(0) === "-" ? decodeArr(lines) : decodeObj(lines)
- }
-}
-
-function decodeArr (lines) {
- var out = []
- , key = 0
- , val = []
- for (var i = 0, l = lines.length; i < l; i ++) {
- // if it starts with a -, then it's a new thing
- var line = lines[i]
- if (line.charAt(0) === "-") {
- if (val.length) {
- out[key ++] = decode(val.join("\n"))
- val.length = 0
- }
- val.push(line.substr(1).trim())
- } else if (line.charAt(0) === " ") {
- val.push(line)
- } else return []
- }
- if (val.length) {
- out[key ++] = decode(val.join("\n"))
- }
- return out
-}
-
-function decodeObj (lines) {
- var out = {}
- , val = []
- , key = null
-
- for (var i = 0, l = lines.length; i < l; i ++) {
- var line = lines[i]
- if (line.charAt(0) === " ") {
- val.push(line)
- continue
- }
- // some key:val
- if (val.length) {
- out[key] = decode(val.join("\n"))
- val.length = 0
- }
- // parse out the quoted key
- var first
- if (line.charAt(0) === "\"") {
- for (var ii = 1, ll = line.length, esc = false; ii < ll; ii ++) {
- var c = line.charAt(ii)
- if (c === "\\") {
- esc = !esc
- } else if (c === "\"" && !esc) {
- break
- }
- }
- key = JSON.parse(line.substr(0, ii + 1))
- line = line.substr(ii + 1)
- first = line.substr(line.indexOf(":") + 1).trim()
- } else {
- var kv = line.split(":")
- key = kv.shift()
- first = kv.join(":").trim()
- }
- // now we've set a key, and "first" has the first line of the value.
- val.push(first.trim())
- }
- if (val.length) out[key] = decode(val.join("\n"))
- return out
-}
-
-function undent (lines) {
- var i = lines[0].match(/^\s*/)[0].length
- return lines.map(function (line) {
- return line.substr(i)
- })
-}
-
-
-// XXX Turn this into proper tests.
-if (require.main === module) {
-var obj = [{"bigstring":new Error().stack}
- ,{ar:[{list:"of"},{some:"objects"}]}
- ,{date:new Date()}
- ,{"super huge string":new Error().stack}
- ]
-
-Date.prototype.toJSON = function (k, val) {
- console.error(k, val, this)
- return this.toISOString() + " (it's a date)"
-}
-
-var enc = encode(obj)
- , dec = decode(enc)
- , encDec = encode(dec)
-
-console.error(JSON.stringify({ obj : obj
- , enc : enc.split(/\n/)
- , dec : dec }, null, 2), encDec === enc)
-
-var num = 100
- , encNum = encode(num)
- , decEncNum = decode(encNum)
-console.error([num, encNum, decEncNum])
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/package.json
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/package.json b/node_modules/nodeunit/node_modules/tap/package.json
deleted file mode 100644
index 4489a15..0000000
--- a/node_modules/nodeunit/node_modules/tap/package.json
+++ /dev/null
@@ -1,60 +0,0 @@
-{
- "name": "tap",
- "version": "0.3.1",
- "author": {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me"
- },
- "description": "A Test-Anything-Protocol library",
- "bin": {
- "tap": "bin/tap.js"
- },
- "main": "lib/main.js",
- "dependencies": {
- "inherits": "*",
- "yamlish": "*",
- "slide": "*",
- "runforcover": "~0.0.2",
- "nopt": "~2",
- "mkdirp": "~0.3",
- "difflet": "~0.2.0",
- "deep-equal": "~0.0.0",
- "buffer-equal": "~0.0.0"
- },
- "keywords": [
- "assert",
- "test",
- "tap"
- ],
- "contributors": [
- {
- "name": "Isaac Z. Schlueter",
- "email": "i@izs.me",
- "url": "http://blog.izs.me"
- },
- {
- "name": "baudehlo",
- "email": "helpme+github@gmail.com"
- }
- ],
- "license": {
- "type": "MIT",
- "url": "https://github.com/isaacs/node-tap/raw/master/LICENSE"
- },
- "repository": {
- "type": "git",
- "url": "git://github.com/isaacs/node-tap.git"
- },
- "scripts": {
- "test": "bin/tap.js test/*.js"
- },
- "readme": "This is a mix-and-match set of utilities that you can use to write test\nharnesses and frameworks that communicate with one another using the\nTest Anything Protocol.\n\nIf you don't yet know what TAP is, [you better ask\nsomebody](http://testanything.org/).\n\nDefault Usage:\n\n1. Make a directory. Maybe call it 'test'. That'd be nice and obvious.\n2. Put a bunch of test scripts in there. If they're node programs, then\n they should be \".js\". Anything else is assumed to be some kind of shell\n script, which should have a shebang line.\n3. `npm install tap`\n4. `tap ./tests`\n\nThe output will be TAP-compliant.\n\nFor extra special bonus points, you can do something like this:\n\n var test = require(\"tap\").test\n test(\"make sure the thingie is a thing\", function (t) {\n t.equal(thingie, \"thing\", \"thingie should be thing\")\n t.type(thingie, \"string\", \"type of thingie is string\")\n t.ok(true, \"this is always true\")\n t.not
Ok(false, \"this is never true\")\n t.test(\"a child test\", function (t) {\n t.equal(this, superEasy, \"right!?\")\n t.similar(7, 2, \"ever notice 7 is kinda like 2?\", {todo: true})\n t.test(\"so skippable\", {skip: true}, function (t) {\n t.plan(1) // only one test in this block\n t.ok(true, \"but when the flag changes, it'll pass\")\n // no need to end, since we had a plan.\n })\n t.end()\n })\n t.ok(99, \"can also skip individual assertions\", {skip: true})\n // end lets it know it's over.\n t.end()\n })\n test(\"another one\", function (t) {\n t.plan(1)\n t.ok(true, \"It's ok to plan, and also end. Watch.\")\n t.end() // but it must match the plan!\n })\n\nNode-tap is actually a collection of several modules, any of which may be\nmixed and matched however you please.\n\nIf you don't like this test framework, and think you can do much much\nbetter, *I strongly encoura
ge you to do so!* If you use this library,\nhowever, at least to output TAP-compliant results when `process.env.TAP`\nis set, then the data coming out of your framework will be much more\nconsumable by machines.\n\nYou can also use this to build programs that *consume* the TAP data, so\nthis is very useful for CI systems and such.\n\n* tap-assert: A collection of assert functions that return TAP result\n objects.\n* tap-consumer: A stream interface for consuming TAP data.\n* tap-producer: A class that produces a TAP stream by taking in result\n objects.\n* tap-results: A class for keeping track of TAP result objects as they\n pass by, counting up skips, passes, fails, and so on.\n* tap-runner: A program that runs through a directory running all the\n tests in it. (Tests which may or may not be TAP-outputting tests. But\n it's better if they are.)\n* tap-test: A class for actually running tests.\n* tap-harness: A class that runs tests. (Tests are also Harnesses,\n which is
how sub-tests run.)\n* tap-global-harness: A default harness that provides the top-level\n support for running TAP tests.\n\n## Experimental Code Coverage with runforcover & bunker:\n\n```\nTAP_COV=1 tap ./tests [--cover=./lib,foo.js] [--cover-dir=./coverage]\n```\n\nThis feature is experimental, and will most likely change somewhat\nbefore being finalized. Feedback welcome.\n",
- "_id": "tap@0.3.1",
- "bundleDependencies": [
- "inherits",
- "tap-consumer",
- "yamlish"
- ],
- "_from": "tap@>=0.2.3"
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/test-disabled/bailout.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/test-disabled/bailout.js b/node_modules/nodeunit/node_modules/tap/test-disabled/bailout.js
deleted file mode 100644
index 498035c..0000000
--- a/node_modules/nodeunit/node_modules/tap/test-disabled/bailout.js
+++ /dev/null
@@ -1,36 +0,0 @@
-var tap = require("tap")
- , test = tap.test
-
-test("bailout test", { skip: false }, function (t) {
-
- // t.once("bailout", function () {
- // console.error("bailout event")//, t)
- // t.clear()
- // })
-
- // t.once("end", function () {
- // console.error("end event")
- // })
-
- // simulate three tests where the second bails out.
- t.test("first", function (t) {
- t.pass("this is ok")
- t.end()
- })
-
- t.test("bailout", function (t) {
- console.error("bailout test")
- t.pass("pass")
- t.bailout("bail out message")
- t.fail("fail")
- t.end()
- })
-
- t.test("second (should not happen)", function (t) {
- t.fail("this should not happen")
- t.end()
- })
-
- t.end()
-
-})
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/test-disabled/foo.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/test-disabled/foo.js b/node_modules/nodeunit/node_modules/tap/test-disabled/foo.js
deleted file mode 100644
index 6360156..0000000
--- a/node_modules/nodeunit/node_modules/tap/test-disabled/foo.js
+++ /dev/null
@@ -1 +0,0 @@
-process.stdin
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/test-disabled/t.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/test-disabled/t.js b/node_modules/nodeunit/node_modules/tap/test-disabled/t.js
deleted file mode 100644
index 581d24b..0000000
--- a/node_modules/nodeunit/node_modules/tap/test-disabled/t.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var test = require('tap').test;
-
-function foo() {
- throw new Error('one');
-}
-
-test('demonstrate bug in t.throws', function (t) {
- t.throws(
- function () {
- foo();
- },
- new Error('two')),
- // "this should throw",
- // {}); // not 'one'!
- t.end();
-});
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/test/buffer_compare.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/test/buffer_compare.js b/node_modules/nodeunit/node_modules/tap/test/buffer_compare.js
deleted file mode 100644
index b1e1505..0000000
--- a/node_modules/nodeunit/node_modules/tap/test/buffer_compare.js
+++ /dev/null
@@ -1,11 +0,0 @@
-var test = require("../").test
-
-test("same buffers", function (t) {
- t.same(new Buffer([3,4,243]), new Buffer([3,4,243]))
- t.end()
-})
-
-test("not same buffers", function (t) {
- t.notSame(new Buffer([3,5,243]), new Buffer([3,4,243]))
- t.end()
-})
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/test/common.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/test/common.js b/node_modules/nodeunit/node_modules/tap/test/common.js
deleted file mode 100644
index 7cc43c1..0000000
--- a/node_modules/nodeunit/node_modules/tap/test/common.js
+++ /dev/null
@@ -1,32 +0,0 @@
-exports.taps = ["Tests for the foo module"
- ,{ok:true, name:"test that the foo is fooish"
- ,file:"foo.js", line:8, name:"fooish test"
- ,stack:new Error("fooish").stack}
- ,{ok:false, name:"a test that the bar is barish"
- ,file:"bar.js", line:25
- ,expected:"bar\nbar\nbaz", actual:"rab\nrib\nzib"
- ,hash:{more:"\nstuff\nhere\n",regexp:/asdf/}}
- ,"Quux module tests"
- ,"This is a longer comment"
- ,{ok:true, name:"an easy one."}
- ,{ok:false, name:"bloooooo"
- ,expected:"blerggeyyy"
- ,actual:"blorggeyy"}
- ,{ok:false, name:"array test"
- ,expected:[{ok:true},{ok:true},{stack:new Error().stack}]
- ,actual:[1234567890,123456789,{error:new Error("yikes")}]}
- ,{ok:true, name:"nulltest"
- ,expected:undefined, actual:null}
- ,{ok:true, name:"weird key test"
- ,expected:"weird key"
- ,actual:"weird key"
- ,"this object":{"has a ":"weird key"
- ,"and a looooooooonnnnnnnnnggg":"jacket"}}
- ,{ok:true, name:"regexp test"
- ,regexp:/asdf/,function:function (a,b) { return a + b }}
- ]
-
-if (require.main === module) {
- console.log("1..1")
- console.log("ok 1 - just setup, nothing relevant")
-}
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/test/deep.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/test/deep.js b/node_modules/nodeunit/node_modules/tap/test/deep.js
deleted file mode 100644
index 52b6110..0000000
--- a/node_modules/nodeunit/node_modules/tap/test/deep.js
+++ /dev/null
@@ -1,43 +0,0 @@
-var tap = require("../")
- , test = tap.test
-
-test("deepEquals shouldn't care about key order", function (t) {
- t.deepEqual({ a : 1, b : 2 }, { b : 2, a : 1 })
- t.end()
-})
-
-test("deepEquals shouldn't care about key order recursively", function (t) {
- t.deepEqual(
- { x : { a : 1, b : 2 }, y : { c : 3, d : 4 } },
- { y : { d : 4, c : 3 }, x : { b : 2, a : 1 } }
- )
- t.end()
-})
-
-test("deepEquals shoudn't care about key order but still might", function (t) {
- t.deepEqual(
- [ { foo:
- { z: 100
- , y: 200
- , x: 300 } }
- , "bar"
- , 11
- , { baz:
- { d : 4
- , a: 1
- , b: 2
- , c: 3 } } ]
- , [ { foo :
- { z: 100
- , y: 200
- , x: 300 } }
- , "bar"
- , 11
- , { baz:
- { a: 1
- , b: 2
- , c: 3
- , d: 4 } } ]
- )
- t.end()
-});
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/test/end-exception/t.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/test/end-exception/t.js b/node_modules/nodeunit/node_modules/tap/test/end-exception/t.js
deleted file mode 100644
index eaa5b46..0000000
--- a/node_modules/nodeunit/node_modules/tap/test/end-exception/t.js
+++ /dev/null
@@ -1,12 +0,0 @@
-var test = require("../../").test
-
-test(function (t) {
- t.plan(1)
-
- t.on('end', function () {
- console.log('end()')
- throw new Error('beep')
- })
-
- t.equal(3, 3)
-})
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/test/executed.sh
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/test/executed.sh b/node_modules/nodeunit/node_modules/tap/test/executed.sh
deleted file mode 100755
index 7300937..0000000
--- a/node_modules/nodeunit/node_modules/tap/test/executed.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-echo "1..1"
-echo "ok 1 File with executable bit should be executed"
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/test/expose-gc-test.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/test/expose-gc-test.js b/node_modules/nodeunit/node_modules/tap/test/expose-gc-test.js
deleted file mode 100644
index 87377c1..0000000
--- a/node_modules/nodeunit/node_modules/tap/test/expose-gc-test.js
+++ /dev/null
@@ -1,46 +0,0 @@
-var tap = require("../")
- , fs = require("fs")
- , cp = require("child_process")
-
-fs.writeFileSync("gc-script.js", "console.log(!!global.gc)", "utf8")
-
-tap.test("gc test when the gc isn't there", function (t) {
- console.error("gc test")
- t.plan(1)
- console.error("t.plan="+t._plan)
-
- cp.exec("../bin/tap.js ./gc-script", function (err, stdo, stde) {
- console.error("assert gc does not exist")
- t.ok("false", stdo)
- })
-})
-
-tap.test("gc test when the gc should be there", function (t) {
- console.error("gc test")
- t.plan(2)
- console.error("t.plan="+t._plan)
-
- t.test("test for gc using --gc", function (t) {
- console.error("gc test using --gc")
- t.plan(1)
- console.error("t.plan="+t._plan)
-
- cp.exec("../bin/tap.js --gc ./gc-script", function (err, stdo, stde) {
- console.error("assert gc exists")
- t.ok("true", stdo)
- })
- })
-
- t.test("test for gc using --expose-gc", function (t) {
- console.error("gc test using --expose-gc")
- t.plan(1)
- console.error("t.plan="+t._plan)
-
- cp.exec("../bin/tap.js --expose-gc ./gc-script", function (err, stdo) {
- console.error("assert gc exists")
- t.ok("true", stdo)
- })
- })
-})
-
-fs.unlinkSync("gc-script.js");
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/test/independent-timeouts.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/test/independent-timeouts.js b/node_modules/nodeunit/node_modules/tap/test/independent-timeouts.js
deleted file mode 100644
index 5a35e61..0000000
--- a/node_modules/nodeunit/node_modules/tap/test/independent-timeouts.js
+++ /dev/null
@@ -1,16 +0,0 @@
-// https://github.com/isaacs/node-tap/issues/23
-
-var tap = require("../")
- , test = tap.test
-
-test("finishes in time", {timeout: 500}, function(t) {
- setTimeout(function () {
- t.end();
- }, 300);
-})
-test("finishes in time too", {timeout: 500}, function(t) {
- setTimeout(function () {
- t.end();
- }, 300);
-})
-
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/test/isolated-conf-test.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/test/isolated-conf-test.js b/node_modules/nodeunit/node_modules/tap/test/isolated-conf-test.js
deleted file mode 100644
index d8bfae6..0000000
--- a/node_modules/nodeunit/node_modules/tap/test/isolated-conf-test.js
+++ /dev/null
@@ -1,16 +0,0 @@
-// https://github.com/isaacs/node-tap/issues/24
-
-var tap = require("../")
- , test = tap.test
-
-var config = {foo: "bar"}
-test("one", config, function(t) {
- t.equal(t.conf.foo, "bar")
- t.equal(t.conf.name, "one") // before fix this would be "two"
- t.end()
-})
-test("two", config, function(t) {
- t.equal(t.conf.foo, "bar")
- t.equal(t.conf.name, "two")
- t.end()
-})
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/test/meta-test.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/test/meta-test.js b/node_modules/nodeunit/node_modules/tap/test/meta-test.js
deleted file mode 100644
index 8f56f26..0000000
--- a/node_modules/nodeunit/node_modules/tap/test/meta-test.js
+++ /dev/null
@@ -1,73 +0,0 @@
-var tap = require("../")
- , test = tap.test
-
-test("meta test", { skip: false }, function (t) {
-
- function thr0w() { throw new Error('raburt') }
- function noop () {}
-
- // this also tests the ok/notOk functions
- t.once("end", section2)
- t.ok(true, "true is ok")
- t.ok(noop, "function is ok")
- t.ok({}, "object is ok")
- t.ok(t, "t is ok")
- t.ok(100, "number is ok")
- t.ok("asdf", "string is ok")
- t.notOk(false, "false is notOk")
- t.notOk(0, "0 is notOk")
- t.notOk(null, "null is notOk")
- t.notOk(undefined, "undefined is notOk")
- t.notOk(NaN, "NaN is notOk")
- t.notOk("", "empty string is notOk")
- t.throws(thr0w, "Thrower throws");
- t.doesNotThrow(noop, "noop does not throw");
- t.similar({foo:"bar", bar:"foo"}, {foo:"bar"}, "similar objects are ok");
- t.dissimilar({}, {mandatory:"value"}, "dissimilar objects are ok");
- t.dissimilar(null, {}, "null is dissimilar from an object, even with no keys");
-
- // a few failures.
- t.ifError(new Error("this is an error"))
- t.ifError({ message: "this is a custom error" })
- t.ok(false, "false is not ok")
- t.notOk(true, "true is not not ok")
- t.similar(null, {}, "Null is not similar to an object, even with no keys");
- t.throws(noop, "noop does not throw");
- t.throws(noop, new Error("Whoops!"), "noop does not throw an Error");
- t.throws(noop, {name:"MyError", message:"Whoops!"}, "noop does not throw a MyError");
- t.doesNotThrow(thr0w, "thrower does throw");
-
- // things that are like other things
- t.like("asdf", "asdf")
- t.like("asdf", /^a.*f$/)
- t.like(100, 100)
- t.like(100, '100')
- t.like(100, 100.0)
- t.unlike("asdf", "fdsa")
- t.unlike("asdf", /^you jelly, bro?/)
- t.unlike(100, 100.1)
- t.like(true, 1)
- t.like(null, undefined)
- t.like(true, [1])
- t.like(false, [])
- t.like('', [])
- t.end()
-
- function section2 () {
- var results = t.results
- t.clear()
- t.ok(true, "sanity check")
- t.notOk(results.ok, "not ok")
- t.equal(results.tests, 39, "total test count")
- t.equal(results.passTotal, 30, "tests passed")
- t.equal(results.fail, 9, "tests failed")
- t.type(results.ok, "boolean", "ok is boolean")
- t.type(results.skip, "number", "skip is number")
- t.type(results, "Results", "results isa Results")
- t.type(t, "Test", "test isa Test")
- t.type(t, "Harness", "test isa Harness")
- t.end()
- }
-})
-
-
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/test/nested-test.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/test/nested-test.js b/node_modules/nodeunit/node_modules/tap/test/nested-test.js
deleted file mode 100644
index 493f13a..0000000
--- a/node_modules/nodeunit/node_modules/tap/test/nested-test.js
+++ /dev/null
@@ -1,23 +0,0 @@
-var tap = require("../"),
- test = tap.test,
- util = require('util');
-
-test("parent", function (t) {
- // TODO: Make grandchildren tests count?
- t.plan(3);
- t.ok(true, 'p test');
- t.test("subtest", function (t) {
- t.ok(true, 'ch test');
- t.test('nested subtest', function(t) {
- t.ok(true, 'grch test');
- t.end();
- });
- t.end();
- });
- t.test('another subtest', function(t) {
- t.ok(true, 'ch test 2');
- t.end();
- });
- t.end();
-})
-
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/test/non-tap-output.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/test/non-tap-output.js b/node_modules/nodeunit/node_modules/tap/test/non-tap-output.js
deleted file mode 100644
index 929e9aa..0000000
--- a/node_modules/nodeunit/node_modules/tap/test/non-tap-output.js
+++ /dev/null
@@ -1,12 +0,0 @@
-console.log("everything is fine\n"
- +"there are no errors\n"
- +"this output is not haiku.\n\n"
- +"is 8 ok?\n"
- +"ok, 8 can stay.\n"
- +"ok 100 might be confusing\n"
- +" but: nevertheless, here we are\n"
- +" this: is indented\n"
- +" and: it\n"
- +" might: ~\n"
- +" be: yaml?\n"
- +"ok done now, exiting")
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/test/not-executed.sh
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/test/not-executed.sh b/node_modules/nodeunit/node_modules/tap/test/not-executed.sh
deleted file mode 100644
index de46caa..0000000
--- a/node_modules/nodeunit/node_modules/tap/test/not-executed.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-echo "1..1"
-echo "not ok 1 File without executable bit should not be run"
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/test/result-trap.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/test/result-trap.js b/node_modules/nodeunit/node_modules/tap/test/result-trap.js
deleted file mode 100644
index 1ac600f..0000000
--- a/node_modules/nodeunit/node_modules/tap/test/result-trap.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var tap = require("../")
-
-tap.test("trap result #TODO", function (t0) {
-
- console.log("not ok 1 result event trapping #TODO")
- return t0.end()
-
- t0.plan(3)
-
- var t1 = new(tap.Harness)(tap.Test).test()
-
- t1.plan(1)
-
- t1.on("result", function (res) {
- if (res.wanted === 4) {
- t0.equal(res.found, 3)
- t0.equal(res.wanted, 4)
-
- t0.end()
- t1.end()
- }
- })
-
- t1.equal(1 + 2, 4)
-})
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/test/segv.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/test/segv.js b/node_modules/nodeunit/node_modules/tap/test/segv.js
deleted file mode 100644
index 4b5fe89..0000000
--- a/node_modules/nodeunit/node_modules/tap/test/segv.js
+++ /dev/null
@@ -1,60 +0,0 @@
-var test = require('../').test
-var Runner = require('../lib/tap-runner.js')
-var TC = require('../lib/tap-consumer.js')
-
-var fs = require('fs')
-var spawn = require('child_process').spawn
-var segv =
- 'int main (void) {\n' +
- ' char *s = "hello world";\n' +
- ' *s = \'H\';\n' +
- '}\n'
-var compiled = false
-
-test('setup', function (t) {
- fs.writeFile('segv.c', segv, 'utf8', function (er) {
- if (er)
- throw er
- var cp = spawn('gcc', ['segv.c', '-o', 'segv'])
- cp.on('exit', function (code, sig) {
- if (code !== 0) {
- t.bailout('failed to compile segv program')
- return
- }
- t.pass('compiled seg faulter')
- t.end()
- })
- })
-})
-
-test('segv', function (t) {
- var r = new Runner({argv:{remain:['./segv']}})
- var tc = new TC()
- var expect =
- [ { 'id': 1,
- 'ok': false,
- 'name': ' ././segv',
- 'exit': null,
- 'timedOut': true,
- 'signal': 'SIGBUS',
- 'command': '"./segv"' }
- , 'tests 1'
- , 'fail 1' ]
- r.pipe(tc)
- tc.on('data', function (d) {
- t.same(d, expect.shift())
- })
- tc.on('end', function () {
- t.equal(expect.length, 0)
- t.end()
- })
-})
-
-test('cleanup', function (t) {
- fs.unlink('segv.c', function () {
- fs.unlink('segv', function () {
- t.pass('cleaned up')
- t.end()
- })
- })
-})
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/test/simple-harness-test-with-plan.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/test/simple-harness-test-with-plan.js b/node_modules/nodeunit/node_modules/tap/test/simple-harness-test-with-plan.js
deleted file mode 100644
index 813c4cf..0000000
--- a/node_modules/nodeunit/node_modules/tap/test/simple-harness-test-with-plan.js
+++ /dev/null
@@ -1,16 +0,0 @@
-var tap = require("../")
- , test = tap.test
- , plan = tap.plan
-
-plan(2)
-
-test("trivial success", function (t) {
- t.ok(true, "it works")
- t.end()
-})
-
-test("two tests", function (t) {
- t.equal(255, 0xFF, "math should work")
- t.notOk(false, "false should not be ok")
- t.end()
-})
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/test/simple-harness-test.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/test/simple-harness-test.js b/node_modules/nodeunit/node_modules/tap/test/simple-harness-test.js
deleted file mode 100644
index 64451ae..0000000
--- a/node_modules/nodeunit/node_modules/tap/test/simple-harness-test.js
+++ /dev/null
@@ -1,13 +0,0 @@
-var tap = require("../")
- , test = tap.test
-
-test("trivial success", function (t) {
- t.ok(true, "it works")
- t.end()
-})
-
-test("two tests", function (t) {
- t.equal(255, 0xFF, "math should work")
- t.notOk(false, "false should not be ok")
- t.end()
-})
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/test/test-test.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/test/test-test.js b/node_modules/nodeunit/node_modules/tap/test/test-test.js
deleted file mode 100644
index f383941..0000000
--- a/node_modules/nodeunit/node_modules/tap/test/test-test.js
+++ /dev/null
@@ -1,91 +0,0 @@
-var tap = require("../")
- , test = tap.test
- , Test = require("../lib/tap-test")
- , Harness = require("../lib/tap-harness")
-
-test("testing the test object", function (t) {
-
- t.isa(t, Test, "test object should be instanceof Test")
- t.isa(t, Harness, "test object should be instanceof Harness")
- t.is(t._Test, Test, "test._Test should be the Test class")
-
- // now test all the methods.
- ; [ "isNotDeepEqual"
- , "equals"
- , "inequivalent"
- , "threw"
- , "strictEqual"
- , "emit"
- , "fail"
- , "strictEquals"
- , "notLike"
- , "dissimilar"
- , "true"
- , "assert"
- , "is"
- , "ok"
- , "isEqual"
- , "isDeeply"
- , "deepEqual"
- , "deepEquals"
- , "pass"
- , "length"
- , "skip"
- , "isNotEqual"
- , "looseEquals"
- , "false"
- , "notDeeply"
- , "ifErr"
- , "hasFields"
- , "isNotDeeply"
- , "like"
- , "similar"
- , "notOk"
- , "isDissimilar"
- , "isEquivalent"
- , "doesNotEqual"
- , "isSimilar"
- , "notDeepEqual"
- , "type"
- , "notok"
- , "isInequivalent"
- , "isNot"
- , "same"
- , "isInequal"
- , "_endNice"
- , "ifError"
- , "iferror"
- , "clear"
- , "has"
- , "not"
- , "timeout"
- , "notSimilar"
- , "isUnlike"
- , "notEquals"
- , "unsimilar"
- , "result"
- , "doesNotThrow"
- , "error"
- , "constructor"
- , "notEqual"
- , "throws"
- , "isLike"
- , "isNotSimilar"
- , "isNotEquivalent"
- , "inequal"
- , "notEquivalent"
- , "isNotLike"
- , "equivalent"
- , "looseEqual"
- , "equal"
- , "unlike"
- , "doesNotHave"
- , "comment"
- , "isa"
- ].forEach(function (method) {
- t.ok(t[method], "should have "+method+" method")
- t.isa(t[method], "function", method+" method should be a function")
- })
- t.end()
-})
-
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/test/timeout.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/test/timeout.js b/node_modules/nodeunit/node_modules/tap/test/timeout.js
deleted file mode 100644
index 4ee409c..0000000
--- a/node_modules/nodeunit/node_modules/tap/test/timeout.js
+++ /dev/null
@@ -1,33 +0,0 @@
-var tap = require("../")
-
-tap.test("timeout test with plan only", function (t) {
- console.error("timeout test")
- t.plan(2)
- console.error("t.plan="+t._plan)
- setTimeout(function () {
- console.error("a assert")
- t.ok(true, "a")
- }, 1000)
- setTimeout(function () {
- console.error("b assert")
- t.ok(true, "b")
- }, 1000)
-})
-
-tap.test("timeout test with plan and end", function (t) {
- console.error("timeout test")
- t.plan(2)
-
- var tc = 2
- console.error("t.plan="+t._plan)
- setTimeout(function () {
- console.error("a assert")
- t.ok(true, "a")
- if (-- tc === 0) t.end()
- }, 1000)
- setTimeout(function () {
- console.error("b assert")
- t.ok(true, "b")
- if (-- tc === 0) t.end()
- }, 1000)
-})
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/node_modules/tap/test/trivial-success.js
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/node_modules/tap/test/trivial-success.js b/node_modules/nodeunit/node_modules/tap/test/trivial-success.js
deleted file mode 100644
index e69de29..0000000
http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/19cf42ee/node_modules/nodeunit/nodelint.cfg
----------------------------------------------------------------------
diff --git a/node_modules/nodeunit/nodelint.cfg b/node_modules/nodeunit/nodelint.cfg
deleted file mode 100644
index d6a3aad..0000000
--- a/node_modules/nodeunit/nodelint.cfg
+++ /dev/null
@@ -1,7 +0,0 @@
-//See: http://www.jslint.com/lint.html#options
-var options = {
- //white: false, // if false, strict whitespace rules should be enforced.
- indent: 4,
- onevar: false,
- vars: true // allow multiple var statement per function.
-};