summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorChristopher Lenz <cmlenz@apache.org>2009-07-21 21:32:59 +0000
committerChristopher Lenz <cmlenz@apache.org>2009-07-21 21:32:59 +0000
commitd82348e48cfbed9542613863d053fcd3ef981ff4 (patch)
treeb793cef732576b598589acb77fc28fbea988ba3a /share
parent4fa38ad4e4245f27776b4269634a98212bbae3e8 (diff)
Minor cosmetic cleanup for the custom test page: highight active navitem in sidebar, no toggle icon, resizable text area.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@796544 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share')
-rw-r--r--share/www/custom_test.html14
-rw-r--r--share/www/style/layout.css8
2 files changed, 18 insertions, 4 deletions
diff --git a/share/www/custom_test.html b/share/www/custom_test.html
index 0feb55db..14301e00 100644
--- a/share/www/custom_test.html
+++ b/share/www/custom_test.html
@@ -22,6 +22,7 @@ specific language governing permissions and limitations under the License.
<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 @@ specific language governing permissions and limitations under the License.
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 @@ specific language governing permissions and limitations under the License.
</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();
diff --git a/share/www/style/layout.css b/share/www/style/layout.css
index 5de148c4..473d62d8 100644
--- a/share/www/style/layout.css
+++ b/share/www/style/layout.css
@@ -299,9 +299,11 @@ ul.suggest-dropdown li.selected { cursor: pointer; background: Highlight;
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;