registry test update

This commit is contained in:
guybedford
2014-05-19 14:49:41 -07:00
parent 82565e7343
commit 158e202d3a
6 changed files with 322 additions and 52 deletions
+16 -8
View File
@@ -1,5 +1,6 @@
<!doctype html>
<script src="jspm_packages/system@0.4.js"></script>
<script src="../../es6-module-loader/dist/es6-module-loader.js"></script>
<script src="../../systemjs/dist/system.js"></script>
<script src="config.js"></script>
<body>
@@ -8,8 +9,15 @@
</body>
<script>
System.import('mocha').then(function(mocha) {
System.import('tests/tests').then(function(suites) {
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() {
@@ -22,12 +30,12 @@
});
}
mocha.run();
})
.catch(function(e) {
setTimeout(function() {
throw e;
}, 1);
});
}).
catch(function(e) {
setTimeout(function() {
throw e;
}, 1);
});
</script>