Simplify test/unittests.html removing old stuff related to phantomjs
This commit is contained in:
parent
ee22c023f1
commit
f8c5c84469
|
@ -20,13 +20,9 @@
|
||||||
</script>
|
</script>
|
||||||
<script src="lib/unittests-bundle.js"></script>
|
<script src="lib/unittests-bundle.js"></script>
|
||||||
<script>
|
<script>
|
||||||
if (window.mochaPhantomJS) {
|
|
||||||
mochaPhantomJS.run();
|
|
||||||
} else {
|
|
||||||
var runner = mocha.run();
|
var runner = mocha.run();
|
||||||
|
|
||||||
var failedTests = [];
|
var failedTests = [];
|
||||||
|
|
||||||
runner.on('end', function(){
|
runner.on('end', function(){
|
||||||
window.mochaResults = runner.stats;
|
window.mochaResults = runner.stats;
|
||||||
window.mochaResults.reports = failedTests;
|
window.mochaResults.reports = failedTests;
|
||||||
|
@ -46,7 +42,6 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
runner.on('fail', logFailure);
|
runner.on('fail', logFailure);
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user