move tests to jspm-cli

This commit is contained in:
guybedford
2014-08-23 15:19:06 -07:00
parent ff0a1c1ae2
commit cf2406cb98
13 changed files with 0 additions and 422 deletions
-289
View File
@@ -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"
}
});
-19
View File
@@ -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"
}
}
-1
View File
@@ -1 +0,0 @@
jspm install
-41
View File
@@ -1,41 +0,0 @@
<!doctype html>
<script src="../../es6-module-loader/dist/es6-module-loader.js"></script>
<script src="../../systemjs/dist/system.js"></script>
<script src="config.js"></script>
<body>
<div id="mocha"></div>
<div id="sandbox"></div>
</body>
<script>
System.import('npm:voxel-demo').catch(function(e) {
setTimeout(function() {
throw e;
});
});
System.import('mocha').
then(function(mocha) {
return System.import('tests/tests').then(function(suites) {
mocha.setup('tdd');
for (var s in suites) {
suite(s, function() {
this.timeout(10000);
setup(function() {
document.querySelector("#sandbox").innerHTML = '';
});
for (var t in suites[s])
test(t, suites[s][t]);
});
}
mocha.run();
});
}).
catch(function(e) {
setTimeout(function() {
throw e;
}, 1);
});
</script>
-1
View File
@@ -1 +0,0 @@
<h1>This is an HTML test</h1>
-6
View File
@@ -1,6 +0,0 @@
var angular = require('angular');
exports['load test'] = function(done) {
if (angular)
done();
}
-23
View File
@@ -1,23 +0,0 @@
<!-- Button trigger modal -->
<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
Launch demo modal
</button>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title" id="myModalLabel">Modal title</h4>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
-12
View File
@@ -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();
}
-7
View File
@@ -1,7 +0,0 @@
var d3 = require('d3');
exports['style test'] = function(done) {
document.querySelector('#sandbox').innerHTML = '<p>d3</p>';
d3.selectAll("p").style("color", "red");
done();
}
-6
View File
@@ -1,6 +0,0 @@
var $ = require('jquery');
exports['simple test'] = function(done) {
$('#sandbox').html('jquery');
done();
}
-6
View File
@@ -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');
-10
View File
@@ -1,10 +0,0 @@
exports['voxel demo'] = function(done) {
System.import('npm:voxel-demo').then(function() {
done();
}).
catch(function(e) {
setTimeout(function() {
throw e;
});
});
}