Files
jspm-registry/test/test.html
T

34 lines
734 B
HTML
Raw Normal View History

2014-02-11 16:10:53 +02:00
<!doctype html>
2014-02-15 21:44:55 +02:00
<script src="jspm_packages/system@0.4.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>
System.import('mocha').then(function(mocha) {
2014-02-11 17:02:14 +02:00
System.import('tests/tests').then(function(suites) {
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();
})
.catch(function(e) {
setTimeout(function() {
throw e;
}, 1);
});
});
</script>