diff options
Diffstat (limited to 'share/www/custom_test.html')
| -rw-r--r-- | share/www/custom_test.html | 14 | 
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();  | 
