summaryrefslogtreecommitdiff
path: root/share/www
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2010-06-16 00:07:25 +0000
committerJohn Christopher Anderson <jchris@apache.org>2010-06-16 00:07:25 +0000
commitb3775dbe371acffea4ea44503cfdddc79278eca7 (patch)
tree0b5de9727a5408d3e11d6f9731af7a8474e6207a /share/www
parent8f6a0089ee04ff7e95d1650ab1a2b7ddc0fcaca6 (diff)
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
Diffstat (limited to 'share/www')
-rw-r--r--share/www/couch_tests.html1
-rw-r--r--share/www/script/couch_test_runner.js2
-rw-r--r--share/www/style/layout.css1
3 files changed, 4 insertions, 0 deletions
diff --git a/share/www/couch_tests.html b/share/www/couch_tests.html
index bb384283..46893d71 100644
--- a/share/www/couch_tests.html
+++ b/share/www/couch_tests.html
@@ -62,6 +62,7 @@ specific language governing permissions and limitations under the License.
<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
diff --git a/share/www/script/couch_test_runner.js b/share/www/script/couch_test_runner.js
index b3478ad8..451a454a 100644
--- a/share/www/script/couch_test_runner.js
+++ b/share/www/script/couch_test_runner.js
@@ -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();
diff --git a/share/www/style/layout.css b/share/www/style/layout.css
index 5cb558c5..b8725f4a 100644
--- a/share/www/style/layout.css
+++ b/share/www/style/layout.css
@@ -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;