summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorPaul Joseph Davis <davisp@apache.org>2009-07-11 22:09:39 +0000
committerPaul Joseph Davis <davisp@apache.org>2009-07-11 22:09:39 +0000
commit519d50aa0369fc34f0ac876e977a8c970863bc67 (patch)
tree712470cdebcdc27b62affd36ea6b49360e024fd2 /share
parentc8612a78358e44d15e89517d188a439fab80a233 (diff)
Updated the custom test run to use a locally defined T() function.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@793233 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share')
-rw-r--r--share/www/custom_test.html10
1 files changed, 8 insertions, 2 deletions
diff --git a/share/www/custom_test.html b/share/www/custom_test.html
index 4515ca0f..742da7d7 100644
--- a/share/www/custom_test.html
+++ b/share/www/custom_test.html
@@ -15,7 +15,7 @@ specific language governing permissions and limitations under the License.
-->
<html lang="en">
<head>
- <title>New Test</title>
+ <title>Custom Test</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link rel="stylesheet" href="style/layout.css?0.9.0" type="text/css">
<script src="script/json2.js"></script>
@@ -23,9 +23,15 @@ specific language governing permissions and limitations under the License.
<script src="script/jquery.cookies.js?0.9.0"></script>
<script src="script/jquery.couch.js?0.9.0"></script>
<script src="script/couch.js?0.9.0"></script>
- <script src="script/couch_test_runner.js?0.9.0"></script>
<script src="script/futon.js?0.9.0"></script>
<script>
+ function T(arg, desc) {
+ if(!arg) {
+ mesg = "Assertion failed" + (desc ? ": " + desc : "");
+ throw new Error(mesg);
+ }
+ }
+
$(function() {
$("#status").removeClass("failure").removeClass("success");
$("#viewcode button.run").click(function() {