From b3775dbe371acffea4ea44503cfdddc79278eca7 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Wed, 16 Jun 2010 00:07:25 +0000 Subject: 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 --- share/www/couch_tests.html | 1 + share/www/script/couch_test_runner.js | 2 ++ share/www/style/layout.css | 1 + 3 files changed, 4 insertions(+) (limited to 'share/www') 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.
  • +
  • Note: 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; -- cgit v1.2.3