aboutsummaryrefslogtreecommitdiff
path: root/node_modules/es6-symbol/test
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/es6-symbol/test')
-rw-r--r--node_modules/es6-symbol/test/implement.js3
-rw-r--r--node_modules/es6-symbol/test/index.js12
-rw-r--r--node_modules/es6-symbol/test/is-implemented.js14
-rw-r--r--node_modules/es6-symbol/test/is-native-implemented.js3
-rw-r--r--node_modules/es6-symbol/test/is-symbol.js16
-rw-r--r--node_modules/es6-symbol/test/polyfill.js29
-rw-r--r--node_modules/es6-symbol/test/validate-symbol.js19
7 files changed, 0 insertions, 96 deletions
diff --git a/node_modules/es6-symbol/test/implement.js b/node_modules/es6-symbol/test/implement.js
deleted file mode 100644
index eb35c3018..000000000
--- a/node_modules/es6-symbol/test/implement.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof Symbol, 'function'); };
diff --git a/node_modules/es6-symbol/test/index.js b/node_modules/es6-symbol/test/index.js
deleted file mode 100644
index 62b3296df..000000000
--- a/node_modules/es6-symbol/test/index.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-var d = require('d')
-
- , defineProperty = Object.defineProperty;
-
-module.exports = function (T, a) {
- var symbol = T('test'), x = {};
- defineProperty(x, symbol, d('foo'));
- a(x.test, undefined, "Name");
- a(x[symbol], 'foo', "Get");
-};
diff --git a/node_modules/es6-symbol/test/is-implemented.js b/node_modules/es6-symbol/test/is-implemented.js
deleted file mode 100644
index bb0d64536..000000000
--- a/node_modules/es6-symbol/test/is-implemented.js
+++ /dev/null
@@ -1,14 +0,0 @@
-'use strict';
-
-var global = require('es5-ext/global')
- , polyfill = require('../polyfill');
-
-module.exports = function (t, a) {
- var cache;
- a(typeof t(), 'boolean');
- cache = global.Symbol;
- global.Symbol = polyfill;
- a(t(), true);
- if (cache === undefined) delete global.Symbol;
- else global.Symbol = cache;
-};
diff --git a/node_modules/es6-symbol/test/is-native-implemented.js b/node_modules/es6-symbol/test/is-native-implemented.js
deleted file mode 100644
index df8ba0323..000000000
--- a/node_modules/es6-symbol/test/is-native-implemented.js
+++ /dev/null
@@ -1,3 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) { a(typeof t, 'boolean'); };
diff --git a/node_modules/es6-symbol/test/is-symbol.js b/node_modules/es6-symbol/test/is-symbol.js
deleted file mode 100644
index ac24b9abb..000000000
--- a/node_modules/es6-symbol/test/is-symbol.js
+++ /dev/null
@@ -1,16 +0,0 @@
-'use strict';
-
-var SymbolPoly = require('../polyfill');
-
-module.exports = function (t, a) {
- a(t(undefined), false, "Undefined");
- a(t(null), false, "Null");
- a(t(true), false, "Primitive");
- a(t('raz'), false, "String");
- a(t({}), false, "Object");
- a(t([]), false, "Array");
- if (typeof Symbol !== 'undefined') {
- a(t(Symbol()), true, "Native");
- }
- a(t(SymbolPoly()), true, "Polyfill");
-};
diff --git a/node_modules/es6-symbol/test/polyfill.js b/node_modules/es6-symbol/test/polyfill.js
deleted file mode 100644
index 8b657905d..000000000
--- a/node_modules/es6-symbol/test/polyfill.js
+++ /dev/null
@@ -1,29 +0,0 @@
-'use strict';
-
-var d = require('d')
- , isSymbol = require('../is-symbol')
-
- , defineProperty = Object.defineProperty;
-
-module.exports = function (T, a) {
- var symbol = T('test'), x = {};
- defineProperty(x, symbol, d('foo'));
- a(x.test, undefined, "Name");
- a(x[symbol], 'foo', "Get");
- a(x instanceof T, false);
-
- a(isSymbol(symbol), true, "Symbol");
- a(isSymbol(T.iterator), true, "iterator");
- a(isSymbol(T.toStringTag), true, "toStringTag");
-
- x = {};
- x[symbol] = 'foo';
- if (typeof symbol !== 'symbol') {
- a.deep(Object.getOwnPropertyDescriptor(x, symbol), { configurable: true, enumerable: false,
- value: 'foo', writable: true });
- }
- symbol = T.for('marko');
- a(isSymbol(symbol), true);
- a(T.for('marko'), symbol);
- a(T.keyFor(symbol), 'marko');
-};
diff --git a/node_modules/es6-symbol/test/validate-symbol.js b/node_modules/es6-symbol/test/validate-symbol.js
deleted file mode 100644
index 2c8f84c82..000000000
--- a/node_modules/es6-symbol/test/validate-symbol.js
+++ /dev/null
@@ -1,19 +0,0 @@
-'use strict';
-
-var SymbolPoly = require('../polyfill');
-
-module.exports = function (t, a) {
- var symbol;
- a.throws(function () { t(undefined); }, TypeError, "Undefined");
- a.throws(function () { t(null); }, TypeError, "Null");
- a.throws(function () { t(true); }, TypeError, "Primitive");
- a.throws(function () { t('raz'); }, TypeError, "String");
- a.throws(function () { t({}); }, TypeError, "Object");
- a.throws(function () { t([]); }, TypeError, "Array");
- if (typeof Symbol !== 'undefined') {
- symbol = Symbol();
- a(t(symbol), symbol, "Native");
- }
- symbol = SymbolPoly();
- a(t(symbol), symbol, "Polyfill");
-};