Files
jspm-registry/test/test.html
T

42 lines
922 B
HTML
Raw Normal View History

2014-02-11 16:10:53 +02:00
<!doctype html>
2014-05-19 14:49:30 -07:00
<script src="../../es6-module-loader/dist/es6-module-loader.js"></script>
<script src="../../systemjs/dist/system.js"></script>
2014-02-11 16:10:53 +02:00
<script src="config.js"></script>
2014-02-11 17:02:14 +02:00
<body>
<div id="mocha"></div>
<div id="sandbox"></div>
</body>
2014-02-11 16:10:53 +02:00
<script>
2014-05-19 14:49:30 -07:00
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) {
2014-02-11 17:02:14 +02:00
mocha.setup('tdd');
for (var s in suites) {
suite(s, function() {
2014-02-11 19:32:11 +02:00
this.timeout(10000);
2014-02-11 17:02:14 +02:00
setup(function() {
document.querySelector("#sandbox").innerHTML = '';
});
for (var t in suites[s])
test(t, suites[s][t]);
});
}
2014-02-11 16:10:53 +02:00
mocha.run();
});
2014-05-19 14:49:30 -07:00
}).
catch(function(e) {
setTimeout(function() {
throw e;
}, 1);
2014-02-11 16:10:53 +02:00
});
</script>