mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-24 12:07:10 -04:00
Refactor test runner
This commit is contained in:
parent
df76ca0807
commit
c8bffa006b
4 changed files with 55 additions and 37 deletions
|
@ -2,6 +2,13 @@
|
|||
'use strict';
|
||||
|
||||
var showOnlyFailures = false;
|
||||
var template =
|
||||
'<div id="mocha-custom">' +
|
||||
'<a href="index.html"/>' +
|
||||
'<div class="stats"/>' +
|
||||
'<div class="progress"/>' +
|
||||
'</div>';
|
||||
|
||||
|
||||
function toggleFailureFilter(ev) {
|
||||
|
||||
|
@ -84,6 +91,7 @@ function setupMocha() {
|
|||
|
||||
function runMocha() {
|
||||
|
||||
$(template).appendTo('#mocha').find('a').text(document.title);
|
||||
mocha.run().on('test', onTest).on('end', onEnd);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue