mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-24 12:07:10 -04:00
Clean code.
This commit is contained in:
parent
4daab5d77b
commit
9102b6d1c3
7 changed files with 56 additions and 147 deletions
|
@ -29,6 +29,22 @@ function onEnd() {
|
|||
var $code = $(this);
|
||||
$code.text($code.text().trim().replace(/;\n\s*/g, ';\n'));
|
||||
});
|
||||
|
||||
$('#mocha-stats .passes a').replaceWith('<span>passes:</span>');
|
||||
$('#mocha-stats .failures a').replaceWith('<span>failures:</span>');
|
||||
|
||||
var onlyFailures = false;
|
||||
$('#mocha-stats .failures').on('click', function (ev) {
|
||||
|
||||
onlyFailures = !onlyFailures;
|
||||
if (onlyFailures) {
|
||||
$('.suite, .test').hide();
|
||||
$('.suite.fail, .test.fail').show();
|
||||
} else {
|
||||
$('.suite, .test').show();
|
||||
}
|
||||
ev.stopImmediatePropagation();
|
||||
});
|
||||
}
|
||||
|
||||
function setupMocha() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue