From 158e202d3aeb7e093c977864d36824cb332b777c Mon Sep 17 00:00:00 2001 From: guybedford Date: Mon, 19 May 2014 14:49:30 -0700 Subject: [PATCH] registry test update --- test/config.js | 322 ++++++++++++++++++++++++++++++++++----- test/package.json | 13 +- test/test.html | 24 ++- test/tests/bootstrap.js | 1 + test/tests/tests.js | 4 +- test/tests/voxel-demo.js | 10 ++ 6 files changed, 322 insertions(+), 52 deletions(-) create mode 100644 test/tests/voxel-demo.js diff --git a/test/config.js b/test/config.js index b03feef..e527cba 100644 --- a/test/config.js +++ b/test/config.js @@ -1,39 +1,289 @@ - -System.paths['tests/*'] = 'tests/*.js'; -System.paths['npm:*'] = 'jspm_packages/npm/*.js'; -System.paths['github:*'] = 'jspm_packages/github/*.js'; - -System.map = { - 'mocha': 'npm:mocha@^1.17.1', - 'text': 'github:systemjs/plugin-text@master', - 'bootstrap': 'github:twbs/bootstrap@^3.1.1', - 'css': 'github:systemjs/plugin-css@master', - 'jquery': 'npm:jquery@^2.1.0', - 'd3': 'github:mbostock/d3@^3.4.1', - 'angular': 'github:angular/bower-angular@^1.2.13', - 'npm:mocha@1.17.1': { - 'css': 'github:systemjs/plugin-css@master' - }, - 'github:jspm/nodelibs@0.0.2': { - 'inherits': 'npm:inherits@^2.0.1', - 'ieee754': 'npm:ieee754@^1.1.1', - 'Base64': 'npm:Base64@^0.2.0', - 'base64-js': 'npm:base64-js@^0.0.4' +System.config({ + "paths": { + "tests/*": "tests/*.js", + "npm:*": "jspm_packages/npm/*.js", + "github:*": "jspm_packages/github/*.js" } -}; +}); -System.versions = { - 'github:angular/bower-angular': '1.2.13', - 'npm:mocha': '1.17.1', - 'github:systemjs/plugin-css': 'master', - 'github:systemjs/plugin-text': 'master', - 'github:twbs/bootstrap': '3.1.1', - 'npm:jquery': '2.1.0', - 'github:jspm/nodelibs': '0.0.2', - 'npm:inherits': '2.0.1', - 'npm:ieee754': '1.1.2', - 'npm:Base64': '0.2.0', - 'npm:base64-js': '0.0.4', - 'github:mbostock/d3': '3.4.1' -}; +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 index 07bd604..a8f0381 100644 --- a/test/package.json +++ b/test/package.json @@ -7,12 +7,13 @@ "configFile": "config.js", "registry": "jspm", "dependencies": { - "mocha": "^1.17.1", - "text": "master", - "bootstrap": "^3.1.1", - "css": "master", + "npm:voxel-demo": "^0.0.1", "jquery": "^2.1.0", - "d3": "^3.4.1", - "angular": "^1.2.13" + "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/test.html b/test/test.html index 19a0956..a3297e9 100644 --- a/test/test.html +++ b/test/test.html @@ -1,5 +1,6 @@ - + + @@ -8,8 +9,15 @@ diff --git a/test/tests/bootstrap.js b/test/tests/bootstrap.js index 4c9f888..d9a287e 100644 --- a/test/tests/bootstrap.js +++ b/test/tests/bootstrap.js @@ -8,4 +8,5 @@ exports['modal test'] = function(done) { done(); }); $('#sandbox .btn').click(); + done(); } \ No newline at end of file diff --git a/test/tests/tests.js b/test/tests/tests.js index d659289..76c956a 100644 --- a/test/tests/tests.js +++ b/test/tests/tests.js @@ -1,6 +1,6 @@ - // exports['Angular'] = require('tests/angular'); + exports['Angular'] = require('tests/angular'); exports['Bootstrap'] = require('tests/bootstrap'); exports['jQuery'] = require('tests/jquery'); exports['d3'] = require('tests/d3'); - exports['angular'] = require('tests/angular'); + exports['voxel-demo'] = require('tests/voxel-demo'); diff --git a/test/tests/voxel-demo.js b/test/tests/voxel-demo.js new file mode 100644 index 0000000..2b4d737 --- /dev/null +++ b/test/tests/voxel-demo.js @@ -0,0 +1,10 @@ +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