Merge pull request #1179 from marcelklehr/fix/improve-frontendtest-ux

improve frontend test ux
pull/1180/head
John McLear 2012-11-18 07:39:10 -08:00
commit 95dee60d2d
2 changed files with 9 additions and 2 deletions

View File

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

View File

@ -58,6 +58,13 @@ $(function(){
var WebdriverAndHtmlReporter = function(html_reporter){
return function(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
html_reporter(runner);