summaryrefslogtreecommitdiff
path: root/share/www/custom_test.html
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/www/custom_test.html
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/www/custom_test.html')
-rw-r--r--share/www/custom_test.html14
1 files changed, 13 insertions, 1 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();