Permalink
Browse files

indicate which test is running in the top of the test runner

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@955097 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 8f6a008 commit b3775dbe371acffea4ea44503cfdddc79278eca7 @jchris jchris committed Jun 16, 2010
Showing with 4 additions and 0 deletions.
  1. +1 −0 share/www/couch_tests.html
  2. +2 −0 share/www/script/couch_test_runner.js
  3. +1 −0 share/www/style/layout.css
@@ -62,6 +62,7 @@ <h1>
<li><button class="load">Reload</button></li>
<li><button class="share">Share Test Reports</button></li>
<li><button class="add">Custom Test</button></li>
+ <li class="current"></li>
</ul>
<p class="help">
<strong>Note:</strong> Each of the tests will block the browser. If the
@@ -72,6 +72,7 @@ function runTest(button, callback, debug, noSave) {
var row = currentRow = $(button).parents("tr").get(0);
$("td.status", row).removeClass("error").removeClass("failure").removeClass("success");
$("td", row).text("");
+ $("#toolbar li.current").text("Running: "+row.id);
var testFun = couchTests[row.id];
function run() {
numFailures = 0;
@@ -103,6 +104,7 @@ function runTest(button, callback, debug, noSave) {
var duration = new Date().getTime() - start;
$("td.status", row).removeClass("running").addClass(status).text(status);
$("td.duration", row).text(duration + "ms");
+ $("#toolbar li.current").text("Finished: "+row.id);
updateTestsFooter();
currentRow = null;
if (callback) callback();
@@ -229,6 +229,7 @@ body.fullwidth #wrap { margin-right: 0; }
margin: 0 0 .5em; padding: 5px 5px 5px 3px;
}
#toolbar li { display: inline; }
+#toolbar li.current {float:right;}
#toolbar button { background: transparent 2px 2px no-repeat; border: none;
color: #666; margin: 0; padding: 2px 1em 2px 22px; cursor: pointer;
font-size: 95%; line-height: 16px;

0 comments on commit b3775db

Please sign in to comment.