From 1b409d7b9da09bd8151669b18ad4ef47eca8bc0b Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Sun, 18 Nov 2012 12:49:34 +0100 Subject: [PATCH 1/2] Scroll down the list of tests after a test completed --- tests/frontend/runner.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/frontend/runner.js b/tests/frontend/runner.js index 0a5491f98..1679664bf 100644 --- a/tests/frontend/runner.js +++ b/tests/frontend/runner.js @@ -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); From bec2c3692db05e31f1b9b37169d7a2af93e8b5ab Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Sun, 18 Nov 2012 12:49:59 +0100 Subject: [PATCH 2/2] Always display the test overview panel --- tests/frontend/runner.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/frontend/runner.css b/tests/frontend/runner.css index 91c7431f7..0e4b5fd13 100644 --- a/tests/frontend/runner.css +++ b/tests/frontend/runner.css @@ -188,9 +188,9 @@ body { } #stats { - position: absolute; + position: fixed; top: 15px; - right: 10px; + right: 52%; font-size: 12px; margin: 0; color: #888;