From cf2406cb9834b1481422757cd056cd70ec288794 Mon Sep 17 00:00:00 2001 From: guybedford Date: Sat, 23 Aug 2014 15:19:06 -0700 Subject: [PATCH] move tests to jspm-cli --- .gitignore | 1 - test/config.js | 289 -------------------------------------- test/package.json | 19 --- test/setup.sh | 1 - test/test.html | 41 ------ test/tests/angular.html | 1 - test/tests/angular.js | 6 - test/tests/bootstrap.html | 23 --- test/tests/bootstrap.js | 12 -- test/tests/d3.js | 7 - test/tests/jquery.js | 6 - test/tests/tests.js | 6 - test/tests/voxel-demo.js | 10 -- 13 files changed, 422 deletions(-) delete mode 100644 .gitignore delete mode 100644 test/config.js delete mode 100644 test/package.json delete mode 100755 test/setup.sh delete mode 100644 test/test.html delete mode 100644 test/tests/angular.html delete mode 100644 test/tests/angular.js delete mode 100644 test/tests/bootstrap.html delete mode 100644 test/tests/bootstrap.js delete mode 100644 test/tests/d3.js delete mode 100644 test/tests/jquery.js delete mode 100644 test/tests/tests.js delete mode 100644 test/tests/voxel-demo.js diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 5d71bda..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -test/jspm_packages diff --git a/test/config.js b/test/config.js deleted file mode 100644 index e527cba..0000000 --- a/test/config.js +++ /dev/null @@ -1,289 +0,0 @@ -System.config({ - "paths": { - "tests/*": "tests/*.js", - "npm:*": "jspm_packages/npm/*.js", - "github:*": "jspm_packages/github/*.js" - } -}); - -System.config({ - "map": { - "npm:voxel-demo": "npm:voxel-demo@^0.0.1", - "css": "github:systemjs/plugin-css@master", - "mocha": "npm:mocha@^1.17.1", - "text": "github:systemjs/plugin-text@master", - "jquery": "github:components/jquery@^2.1.0", - "npm:voxel-demo@0.0.1": { - "gl-vao": "npm:gl-vao@0.0", - "gl-buffer": "npm:gl-buffer@0.1", - "gl-tile-map": "npm:gl-tile-map@0.3", - "gl-now": "npm:gl-now@0.0", - "gl-matrix": "npm:gl-matrix@2.0", - "ndarray-fill": "npm:ndarray-fill@0.1", - "ndarray": "npm:ndarray@1.0", - "ao-shader": "npm:ao-shader@0.2", - "ao-mesher": "npm:ao-mesher@0.2", - "ndarray-ops": "npm:ndarray-ops@1.1", - "gl-shader": "npm:gl-shader@0.0.6" - }, - "d3": "github:mbostock/d3@^3.4.6", - "npm:ao-mesher@0.2.10": { - "ndarray": "npm:ndarray@^1.0.1", - "greedy-mesher": "npm:greedy-mesher@1.0", - "typedarray-pool": "npm:typedarray-pool@^0.1.1", - "cwise-compiler": "npm:cwise-compiler@0.1" - }, - "angular": "github:angular/bower-angular@^1.2.13", - "npm:gl-tile-map@0.3.0": { - "ndarray": "npm:ndarray@^1.0.3", - "webglew": "npm:webglew@0.0", - "gl-texture2d": "npm:gl-texture2d@^0.1.2", - "tile-mip-map": "npm:tile-mip-map@0.2" - }, - "npm:webglew@0.0.0": {}, - "npm:tile-mip-map@0.2.1": { - "ndarray": "npm:ndarray@^1.0.3", - "ndarray-ops": "npm:ndarray-ops@1.1", - "ndarray-downsample2x": "npm:ndarray-downsample2x@0.1" - }, - "npm:ndarray-fill@0.1.0": { - "cwise": "npm:cwise@^0.3.2" - }, - "npm:gl-vao@0.0.3": { - "webglew": "npm:webglew@0.0" - }, - "npm:gl-buffer@0.1.2": { - "ndarray-ops": "npm:ndarray-ops@^1.1.0", - "typedarray-pool": "npm:typedarray-pool@^0.1.1", - "ndarray": "npm:ndarray@^1.0.10" - }, - "npm:ndarray@1.0.14": { - "iota-array": "npm:iota-array@1" - }, - "npm:mocha@1.19.0": { - "css": "github:systemjs/plugin-css@master" - }, - "bootstrap": "github:twbs/bootstrap@^3.1.1", - "npm:gl-now@0.0.4": { - "webglew": "npm:webglew@0.0", - "game-shell": "npm:game-shell@^0.1.3" - }, - "npm:ao-shader@0.2.3": { - "gl-shader": "npm:gl-shader@^0.0.5", - "brfs": "npm:brfs@^0.0.5" - }, - "npm:ndarray-ops@1.1.1": { - "cwise-compiler": "npm:cwise-compiler@0.0" - }, - "npm:gl-shader@0.0.6": { - "uniq": "npm:uniq@^0.0.2", - "glsl-exports": "npm:glsl-exports@0.0" - }, - "npm:gl-matrix@2.0.0": {}, - "npm:gl-texture2d@0.1.12": { - "webglew": "npm:webglew@^0.0.0", - "ndarray": "npm:ndarray@^1.0.10", - "ndarray-ops": "npm:ndarray-ops@^1.1.0", - "cwise-compiler": "npm:cwise-compiler@0.1", - "typedarray-pool": "npm:typedarray-pool@1", - "bit-twiddle": "npm:bit-twiddle@^0.0.2" - }, - "npm:iota-array@1.0.0": {}, - "npm:cwise@0.3.4": { - "cwise-compiler": "npm:cwise-compiler@0.0", - "cwise-parser": "npm:cwise-parser@^0.0.1" - }, - "npm:gl-shader@0.0.5": { - "uniq": "npm:uniq@^0.0.2", - "glsl-exports": "npm:glsl-exports@0.0" - }, - "npm:typedarray-pool@0.1.2": { - "dup": "npm:dup@0.0", - "bit-twiddle": "npm:bit-twiddle@^0.0.2" - }, - "npm:greedy-mesher@1.0.2": { - "typedarray-pool": "npm:typedarray-pool@1", - "iota-array": "npm:iota-array@1", - "uniq": "npm:uniq@1" - }, - "npm:uniq@0.0.2": {}, - "npm:cwise-compiler@0.0.0": { - "uniq": "npm:uniq@^0.0.2" - }, - "npm:cwise-compiler@0.1.0": { - "uniq": "npm:uniq@^0.0.2" - }, - "npm:glsl-exports@0.0.0": { - "glsl-parser": "npm:glsl-parser@^0.0.5", - "through": "npm:through@^2.3.4", - "glsl-tokenizer": "npm:glsl-tokenizer@^0.0.8" - }, - "npm:game-shell@0.1.4": { - "uniq": "npm:uniq@^0.0.2", - "iota-array": "npm:iota-array@0.0", - "lower-bound": "npm:lower-bound@^0.0.1", - "invert-hash": "npm:invert-hash@0.0", - "domready": "npm:domready@^0.2.11", - "vkey": "npm:vkey@^0.0.2" - }, - "npm:brfs@0.0.5": { - "through": "npm:through@2.2", - "falafel": "npm:falafel@^0.1.6", - "escodegen": "npm:escodegen@0.0.17" - }, - "npm:typedarray-pool@1.0.1": { - "bit-twiddle": "npm:bit-twiddle@1", - "dup": "npm:dup@1" - }, - "npm:ndarray-downsample2x@0.1.1": { - "ndarray-ops": "npm:ndarray-ops@1.1", - "cwise": "npm:cwise@^0.3.3", - "ndarray-scratch": "npm:ndarray-scratch@^0.0.1", - "ndarray-fft": "npm:ndarray-fft@0.1" - }, - "npm:bit-twiddle@0.0.2": {}, - "npm:uniq@1.0.0": {}, - "npm:dup@0.0.0": {}, - "npm:cwise-parser@0.0.1": { - "uniq": "npm:uniq@^0.0.2", - "esprima": "npm:esprima@^1.0.3" - }, - "npm:iota-array@0.0.1": {}, - "npm:bit-twiddle@1.0.1": {}, - "npm:dup@1.0.0": {}, - "npm:glsl-parser@0.0.5": { - "glsl-tokenizer": "npm:glsl-tokenizer@^0.0.2", - "through": "npm:through@^1.1.2" - }, - "npm:lower-bound@0.0.1": {}, - "npm:through@2.3.4": {}, - "npm:glsl-tokenizer@0.0.8": { - "through": "npm:through@^2.3.4" - }, - "npm:vkey@0.0.2": {}, - "npm:invert-hash@0.0.0": {}, - "npm:ndarray-scratch@0.0.1": { - "ndarray": "npm:ndarray@^1.0.3", - "typedarray-pool": "npm:typedarray-pool@^0.1.1" - }, - "npm:ndarray-fft@0.1.0": { - "bit-twiddle": "npm:bit-twiddle@^0.0.2", - "ndarray": "npm:ndarray@1.0", - "ndarray-ops": "npm:ndarray-ops@1.1", - "cwise": "npm:cwise@^0.3.2", - "typedarray-pool": "npm:typedarray-pool@^0.1.1" - }, - "npm:domready@0.2.13": {}, - "npm:through@2.2.7": {}, - "npm:falafel@0.1.6": { - "esprima": "npm:esprima@^1.0.2" - }, - "npm:glsl-tokenizer@0.0.2": {}, - "npm:through@1.1.2": {}, - "npm:escodegen@0.0.17": { - "esprima": "npm:esprima@^1.0.2", - "estraverse": "npm:estraverse@^0.0.4" - }, - "npm:estraverse@0.0.4": {}, - "github:jspm/nodelibs@0.0.2": { - "Base64": "npm:Base64@0.2", - "inherits": "npm:inherits@^2.0.1", - "ieee754": "npm:ieee754@^1.1.1", - "base64-js": "npm:base64-js@^0.0.4", - "json": "github:systemjs/plugin-json@master" - }, - "npm:esprima@1.2.2": {}, - "npm:base64-js@0.0.4": {}, - "npm:inherits@2.0.1": {}, - "npm:ieee754@1.1.3": {}, - "npm:Base64@0.2.1": {} - } -}); - -System.config({ - "versions": { - "npm:voxel-demo": "0.0.1", - "github:systemjs/plugin-css": "master", - "npm:mocha": "1.19.0", - "github:systemjs/plugin-text": "master", - "github:components/jquery": "2.1.0", - "npm:gl-vao": "0.0.3", - "npm:gl-buffer": "0.1.2", - "npm:gl-tile-map": "0.3.0", - "npm:gl-now": "0.0.4", - "npm:gl-matrix": "2.0.0", - "github:mbostock/d3": "3.4.8", - "npm:ndarray-fill": "0.1.0", - "npm:ndarray": "1.0.14", - "npm:ao-shader": "0.2.3", - "npm:ao-mesher": "0.2.10", - "npm:ndarray-ops": "1.1.1", - "npm:gl-shader": [ - "0.0.6", - "0.0.5" - ], - "github:jspm/nodelibs": "0.0.2", - "npm:webglew": "0.0.0", - "npm:gl-texture2d": "0.1.12", - "npm:tile-mip-map": "0.2.1", - "npm:cwise": "0.3.4", - "npm:iota-array": [ - "1.0.0", - "0.0.1" - ], - "npm:typedarray-pool": [ - "0.1.2", - "1.0.1" - ], - "github:angular/bower-angular": "1.2.16", - "npm:greedy-mesher": "1.0.2", - "npm:game-shell": "0.1.4", - "npm:cwise-compiler": [ - "0.0.0", - "0.1.0" - ], - "github:twbs/bootstrap": "3.1.1", - "npm:uniq": [ - "0.0.2", - "1.0.0" - ], - "npm:brfs": "0.0.5", - "npm:glsl-exports": "0.0.0", - "npm:ndarray-downsample2x": "0.1.1", - "npm:bit-twiddle": [ - "0.0.2", - "1.0.1" - ], - "npm:dup": [ - "0.0.0", - "1.0.0" - ], - "npm:cwise-parser": "0.0.1", - "npm:glsl-parser": "0.0.5", - "npm:through": [ - "1.1.2", - "2.2.7", - "2.3.4" - ], - "npm:glsl-tokenizer": [ - "0.0.8", - "0.0.2" - ], - "npm:lower-bound": "0.0.1", - "npm:invert-hash": "0.0.0", - "npm:domready": "0.2.13", - "npm:vkey": "0.0.2", - "npm:falafel": "0.1.6", - "npm:ndarray-scratch": "0.0.1", - "npm:ndarray-fft": "0.1.0", - "npm:escodegen": "0.0.17", - "npm:esprima": "1.2.2", - "npm:estraverse": "0.0.4", - "npm:Base64": "0.2.1", - "npm:inherits": "2.0.1", - "npm:ieee754": "1.1.3", - "npm:base64-js": "0.0.4", - "github:systemjs/plugin-json": "master" - } -}); - diff --git a/test/package.json b/test/package.json deleted file mode 100644 index a8f0381..0000000 --- a/test/package.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "tests", - "directories": { - "lib": "tests", - "dist": "dist" - }, - "configFile": "config.js", - "registry": "jspm", - "dependencies": { - "npm:voxel-demo": "^0.0.1", - "jquery": "^2.1.0", - "text": "master", - "mocha": "^1.17.1", - "d3": "^3.4.6", - "css": "master", - "angular": "^1.2.13", - "bootstrap": "^3.1.1" - } -} \ No newline at end of file diff --git a/test/setup.sh b/test/setup.sh deleted file mode 100755 index d45f15f..0000000 --- a/test/setup.sh +++ /dev/null @@ -1 +0,0 @@ -jspm install diff --git a/test/test.html b/test/test.html deleted file mode 100644 index a3297e9..0000000 --- a/test/test.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - -
-
- - - - diff --git a/test/tests/angular.html b/test/tests/angular.html deleted file mode 100644 index 417cabc..0000000 --- a/test/tests/angular.html +++ /dev/null @@ -1 +0,0 @@ -

This is an HTML test

\ No newline at end of file diff --git a/test/tests/angular.js b/test/tests/angular.js deleted file mode 100644 index 711eaca..0000000 --- a/test/tests/angular.js +++ /dev/null @@ -1,6 +0,0 @@ -var angular = require('angular'); - -exports['load test'] = function(done) { - if (angular) - done(); -} \ No newline at end of file diff --git a/test/tests/bootstrap.html b/test/tests/bootstrap.html deleted file mode 100644 index 550fb05..0000000 --- a/test/tests/bootstrap.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/test/tests/bootstrap.js b/test/tests/bootstrap.js deleted file mode 100644 index d9a287e..0000000 --- a/test/tests/bootstrap.js +++ /dev/null @@ -1,12 +0,0 @@ -var $ = require('bootstrap'); -require('bootstrap/css/bootstrap.css!'); -var template = require('./bootstrap.html!text'); - -exports['modal test'] = function(done) { - $("#sandbox").html(template); - $('#myModal').on('shown.bs.modal', function() { - done(); - }); - $('#sandbox .btn').click(); - done(); -} \ No newline at end of file diff --git a/test/tests/d3.js b/test/tests/d3.js deleted file mode 100644 index fdcd505..0000000 --- a/test/tests/d3.js +++ /dev/null @@ -1,7 +0,0 @@ -var d3 = require('d3'); - -exports['style test'] = function(done) { - document.querySelector('#sandbox').innerHTML = '

d3

'; - d3.selectAll("p").style("color", "red"); - done(); -} \ No newline at end of file diff --git a/test/tests/jquery.js b/test/tests/jquery.js deleted file mode 100644 index 141c271..0000000 --- a/test/tests/jquery.js +++ /dev/null @@ -1,6 +0,0 @@ -var $ = require('jquery'); - -exports['simple test'] = function(done) { - $('#sandbox').html('jquery'); - done(); -} \ No newline at end of file diff --git a/test/tests/tests.js b/test/tests/tests.js deleted file mode 100644 index 76c956a..0000000 --- a/test/tests/tests.js +++ /dev/null @@ -1,6 +0,0 @@ - - exports['Angular'] = require('tests/angular'); - exports['Bootstrap'] = require('tests/bootstrap'); - exports['jQuery'] = require('tests/jquery'); - exports['d3'] = require('tests/d3'); - exports['voxel-demo'] = require('tests/voxel-demo'); diff --git a/test/tests/voxel-demo.js b/test/tests/voxel-demo.js deleted file mode 100644 index 2b4d737..0000000 --- a/test/tests/voxel-demo.js +++ /dev/null @@ -1,10 +0,0 @@ -exports['voxel demo'] = function(done) { - System.import('npm:voxel-demo').then(function() { - done(); - }). - catch(function(e) { - setTimeout(function() { - throw e; - }); - }); -} \ No newline at end of file