aboutsummaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/node_modules/es6-iterator/test/index.js
diff options
context:
space:
mode:
authorKat Marchán <kzm@sykosomatic.org>2017-01-26 17:21:26 +0100
committerJeremiah Senkpiel <fishrock123@rocketmail.com>2017-01-30 14:47:24 -0500
commitafb7c1bac87d943a9ca6422c7100e0e3fe291740 (patch)
tree1ce1f8214473a200de9de52989c1ec8aad8ddf89 /deps/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/node_modules/es6-iterator/test/index.js
parent5de3cf099cd01c84d1809dab90c041b76aa58d8e (diff)
downloadandroid-node-v8-afb7c1bac87d943a9ca6422c7100e0e3fe291740.tar.gz
android-node-v8-afb7c1bac87d943a9ca6422c7100e0e3fe291740.tar.bz2
android-node-v8-afb7c1bac87d943a9ca6422c7100e0e3fe291740.zip
deps: upgrade npm to 4.1.2
PR-URL: https://github.com/nodejs/node/pull/11020 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'deps/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/node_modules/es6-iterator/test/index.js')
-rw-r--r--deps/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/node_modules/es6-iterator/test/index.js99
1 files changed, 0 insertions, 99 deletions
diff --git a/deps/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/node_modules/es6-iterator/test/index.js b/deps/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/node_modules/es6-iterator/test/index.js
deleted file mode 100644
index ea3621adfe..0000000000
--- a/deps/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/node_modules/es6-iterator/test/index.js
+++ /dev/null
@@ -1,99 +0,0 @@
-'use strict';
-
-var ee = require('event-emitter')
- , iteratorSymbol = require('es6-symbol').iterator;
-
-module.exports = function (T) {
- return {
- "": function (a) {
- var x = ['raz', 'dwa', 'trzy', 'cztery', 'pięć'], it, y, z;
-
- it = new T(x);
- a(it[iteratorSymbol](), it, "@@iterator");
- y = it.next();
- a.deep(y, { done: false, value: 'raz' }, "#1");
- z = it.next();
- a.not(y, z, "Recreate result");
- a.deep(z, { done: false, value: 'dwa' }, "#2");
- a.deep(it.next(), { done: false, value: 'trzy' }, "#3");
- a.deep(it.next(), { done: false, value: 'cztery' }, "#4");
- a.deep(it.next(), { done: false, value: 'pięć' }, "#5");
- a.deep(y = it.next(), { done: true, value: undefined }, "End");
- a.not(y, it.next(), "Recreate result on dead");
- },
- Emited: function (a) {
- var x = ['raz', 'dwa', 'trzy', 'cztery', 'pięć'], y, it;
-
- y = ee();
- it = new T(x, y);
- a.deep(it.next(), { done: false, value: 'raz' }, "#1");
- a.deep(it.next(), { done: false, value: 'dwa' }, "#2");
- y.emit('_add', x.push('sześć') - 1);
- a.deep(it.next(), { done: false, value: 'trzy' }, "#3");
- x.splice(1, 0, 'półtora');
- y.emit('_add', 1);
- a.deep(it.next(), { done: false, value: 'półtora' }, "Insert");
- x.splice(5, 1);
- y.emit('_delete', 5);
- a.deep(it.next(), { done: false, value: 'cztery' }, "#4");
- a.deep(it.next(), { done: false, value: 'sześć' }, "#5");
- a.deep(it.next(), { done: true, value: undefined }, "End");
- },
- "Emited #2": function (a) {
- var x = ['raz', 'dwa', 'trzy', 'cztery', 'pięć', 'sześć'], y, it;
-
- y = ee();
- it = new T(x, y);
- a.deep(it.next(), { done: false, value: 'raz' }, "#1");
- a.deep(it.next(), { done: false, value: 'dwa' }, "#2");
- x.splice(1, 0, 'półtora');
- y.emit('_add', 1);
- x.splice(1, 0, '1.25');
- y.emit('_add', 1);
- x.splice(0, 1);
- y.emit('_delete', 0);
- a.deep(it.next(), { done: false, value: 'półtora' }, "Insert");
- a.deep(it.next(), { done: false, value: '1.25' }, "Insert #2");
- a.deep(it.next(), { done: false, value: 'trzy' }, "#3");
- a.deep(it.next(), { done: false, value: 'cztery' }, "#4");
- x.splice(5, 1);
- y.emit('_delete', 5);
- a.deep(it.next(), { done: false, value: 'sześć' }, "#5");
- a.deep(it.next(), { done: true, value: undefined }, "End");
- },
- "Emited: Clear #1": function (a) {
- var x = ['raz', 'dwa', 'trzy', 'cztery', 'pięć', 'sześć'], y, it;
-
- y = ee();
- it = new T(x, y);
- a.deep(it.next(), { done: false, value: 'raz' }, "#1");
- a.deep(it.next(), { done: false, value: 'dwa' }, "#2");
- x.length = 0;
- y.emit('_clear');
- a.deep(it.next(), { done: true, value: undefined }, "End");
- },
- "Emited: Clear #2": function (a) {
- var x = ['raz', 'dwa', 'trzy', 'cztery', 'pięć', 'sześć'], y, it;
-
- y = ee();
- it = new T(x, y);
- a.deep(it.next(), { done: false, value: 'raz' }, "#1");
- a.deep(it.next(), { done: false, value: 'dwa' }, "#2");
- x.length = 0;
- y.emit('_clear');
- x.push('foo');
- x.push('bar');
- a.deep(it.next(), { done: false, value: 'foo' }, "#3");
- a.deep(it.next(), { done: false, value: 'bar' }, "#4");
- x.splice(1, 0, 'półtora');
- y.emit('_add', 1);
- x.splice(1, 0, '1.25');
- y.emit('_add', 1);
- x.splice(0, 1);
- y.emit('_delete', 0);
- a.deep(it.next(), { done: false, value: 'półtora' }, "Insert");
- a.deep(it.next(), { done: false, value: '1.25' }, "Insert #2");
- a.deep(it.next(), { done: true, value: undefined }, "End");
- }
- };
-};