You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by cm...@apache.org on 2009/01/15 09:53:26 UTC
svn commit: r734633 - in /couchdb/trunk/share/www:
script/couch_test_runner.js script/futon.browse.js style/layout.css
Author: cmlenz
Date: Thu Jan 15 00:53:25 2009
New Revision: 734633
URL: http://svn.apache.org/viewvc?rev=734633&view=rev
Log:
Fix bug in test runner triggered by upgrade to jQuery 1.3.
Modified:
couchdb/trunk/share/www/script/couch_test_runner.js
couchdb/trunk/share/www/script/futon.browse.js
couchdb/trunk/share/www/style/layout.css
Modified: couchdb/trunk/share/www/script/couch_test_runner.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/couch_test_runner.js?rev=734633&r1=734632&r2=734633&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/couch_test_runner.js (original)
+++ couchdb/trunk/share/www/script/couch_test_runner.js Thu Jan 15 00:53:25 2009
@@ -137,7 +137,9 @@
function updateTestsFooter() {
var tests = $("#tests tbody.content tr td.status");
- var testsRun = tests.not(":contains('not run'))");
+ console.log(tests);
+ var testsRun = tests.filter(".success, .error, .failure");
+ console.log(testsRun)
var testsFailed = testsRun.not(".success");
$("#tests tbody.footer td").text(testsRun.length + " of " + tests.length +
" test(s) run, " + testsFailed.length + " failures");
Modified: couchdb/trunk/share/www/script/futon.browse.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/futon.browse.js?rev=734633&r1=734632&r2=734633&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/futon.browse.js [utf-8] (original)
+++ couchdb/trunk/share/www/script/futon.browse.js [utf-8] Thu Jan 15 00:53:25 2009
@@ -205,6 +205,16 @@
$.cookies.get(db.name + ".reduce", "")
);
}
+ $("#viewcode textarea").change(function() {
+ if (page.viewLanguage == "javascript") {
+ try {
+ var func = eval("(" + $(this).val() + ")");
+ $(this).removeClass("invalid").next(".error").remove();
+ } catch (err) {
+ $(this).addClass("invalid").data("error", err.message);
+ }
+ }
+ });
page.populateLanguagesMenu();
}
Modified: couchdb/trunk/share/www/style/layout.css
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/style/layout.css?rev=734633&r1=734632&r2=734633&view=diff
==============================================================================
--- couchdb/trunk/share/www/style/layout.css (original)
+++ couchdb/trunk/share/www/style/layout.css Thu Jan 15 00:53:25 2009
@@ -314,6 +314,7 @@
resize: none; width: 100%; overflow: auto;
}
#viewcode .code textarea:focus { background: #e9f4ff; }
+#viewcode .code textarea.invalid { background: #fee; color: #800; }
#viewcode .bottom { border-bottom: none; clear: left; padding: 1px 3px; }
#viewcode .bottom button { font-size: 90%; margin: 0 1em 0 0;
padding-left: 2em; padding-right: 2em;
@@ -453,9 +454,12 @@
#tests tbody.content th { cursor: help; padding-left: 25px;
white-space: nowrap;
}
-#tests tbody.content th button {
- background-image: url(../image/run-mini.png);
+#tests tbody.content th button.run {
+ background: url(../image/run-mini.png) no-repeat; border: none;
+ cursor: pointer; float: left; margin: .2em 5px 0 -20px; padding: 0;
+ width: 15px; height: 15px;
}
+#tests tbody.content th button.run:hover { background-position: -15px 0; }
#tests tbody.content td.duration { text-align: right; width: 6em; }
#tests tbody.content td.status { background-position: 5px 8px;
background-repeat: no-repeat; color: #999; padding-left: 20px;