This commit is contained in:
Marcel Klehr 2012-11-18 03:51:04 -08:00
commit 00df87e52e
2 changed files with 9 additions and 2 deletions

View file

@ -188,9 +188,9 @@ body {
} }
#stats { #stats {
position: absolute; position: fixed;
top: 15px; top: 15px;
right: 10px; right: 52%;
font-size: 12px; font-size: 12px;
margin: 0; margin: 0;
color: #888; color: #888;

View file

@ -58,6 +58,13 @@ $(function(){
var WebdriverAndHtmlReporter = function(html_reporter){ var WebdriverAndHtmlReporter = function(html_reporter){
return function(runner){ return function(runner){
Base.call(this, runner); Base.call(this, runner);
// Scroll down test display after each test
mocha = $('#mocha')[0];
runner.on('test', function(){
mocha.scrollTop = mocha.scrollHeight;
});
//initalize the html reporter first //initalize the html reporter first
html_reporter(runner); html_reporter(runner);