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/07/21 23:32:59 UTC
svn commit: r796544 - in /couchdb/trunk/share/www: custom_test.html
style/layout.css
Author: cmlenz
Date: Tue Jul 21 21:32:59 2009
New Revision: 796544
URL: http://svn.apache.org/viewvc?rev=796544&view=rev
Log:
Minor cosmetic cleanup for the custom test page: highight active navitem in sidebar, no toggle icon, resizable text area.
Modified:
couchdb/trunk/share/www/custom_test.html
couchdb/trunk/share/www/style/layout.css
Modified: couchdb/trunk/share/www/custom_test.html
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/custom_test.html?rev=796544&r1=796543&r2=796544&view=diff
==============================================================================
--- couchdb/trunk/share/www/custom_test.html (original)
+++ couchdb/trunk/share/www/custom_test.html Tue Jul 21 21:32:59 2009
@@ -22,6 +22,7 @@
<script src="script/jquery.js?1.3.1"></script>
<script src="script/jquery.cookies.js?0.9.0"></script>
<script src="script/jquery.couch.js?0.9.0"></script>
+ <script src="script/jquery.resizer.js?0.9.0"></script>
<script src="script/couch.js?0.9.0"></script>
<script src="script/futon.js?0.9.0"></script>
<script>
@@ -37,8 +38,19 @@
T(expect === found, mesg);
}
+ $.futon.navigation.ready(function() {
+ this.updateSelection(
+ location.pathname.replace(/custom_test\.html/, "couch_tests.html"),
+ "?script/couch_tests.js");
+ });
+
$(function() {
$("#status").removeClass("failure").removeClass("success");
+ $("#viewcode textarea").makeResizable({
+ always: true,
+ grippie: $("#viewcode .bottom"),
+ vertical: true
+ });
$("#viewcode button.run").click(function() {
$("#status").removeClass("failure").removeClass("success");
var code = $("#code").val();
@@ -74,7 +86,7 @@
</div>
<table summary="Custom Test Function" cellspacing="0"><tr>
<td class="code">
- <textarea name="code" id="code" rows="30" cols="120">
+ <textarea name="code" id="code" rows="18" cols="120">
couchTests.custom_test = function(debug) {
var db = new CouchDB("test_suite_db");
db.deleteDb();
Modified: couchdb/trunk/share/www/style/layout.css
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/style/layout.css?rev=796544&r1=796543&r2=796544&view=diff
==============================================================================
--- couchdb/trunk/share/www/style/layout.css (original)
+++ couchdb/trunk/share/www/style/layout.css Tue Jul 21 21:32:59 2009
@@ -299,9 +299,11 @@
padding: 0 .5em 2px;
}
#viewcode .top { border-bottom: 1px solid #ddd; color: #aaa; font-size: 95%; }
-#viewcode .top span { background: url(../image/twisty.gif) 0 -96px no-repeat;
- border: none; color: #666; cursor: pointer; display: block; font-size: 90%;
- margin: 0; padding: 2px 0 0 15px;
+#viewcode .top span { border: none; color: #666; cursor: pointer;
+ display: block; font-size: 90%; margin: 0; padding: 2px 0 0;
+}
+#viewcode .top span#view-toggle {
+ background: url(../image/twisty.gif) 0 -96px no-repeat; padding-left: 15px;
}
#viewcode .top a { float: right; font-size: 90%; line-height: 1.4em;
padding: 2px 2px 0 0;