()
| 2703 | } |
| 2704 | |
| 2705 | function updateStats() { |
| 2706 | // TODO: add to stats |
| 2707 | var percent = (stats.tests / runner.total * 100) | 0; |
| 2708 | if (progress) { |
| 2709 | progress.update(percent).draw(ctx); |
| 2710 | } |
| 2711 | |
| 2712 | // update stats |
| 2713 | var ms = new Date() - stats.start; |
| 2714 | text(passes, stats.passes); |
| 2715 | text(failures, stats.failures); |
| 2716 | text(duration, (ms / 1000).toFixed(2)); |
| 2717 | } |
| 2718 | } |
| 2719 | |
| 2720 | /** |