You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2009/07/12 00:09:39 UTC

svn commit: r793233 - /couchdb/trunk/share/www/custom_test.html

Author: davisp
Date: Sat Jul 11 22:09:39 2009
New Revision: 793233

URL: http://svn.apache.org/viewvc?rev=793233&view=rev
Log:
Updated the custom test run to use a locally defined T() function.



Modified:
    couchdb/trunk/share/www/custom_test.html

Modified: couchdb/trunk/share/www/custom_test.html
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/custom_test.html?rev=793233&r1=793232&r2=793233&view=diff
==============================================================================
--- couchdb/trunk/share/www/custom_test.html (original)
+++ couchdb/trunk/share/www/custom_test.html Sat Jul 11 22:09:39 2009
@@ -15,7 +15,7 @@
 -->
 <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 @@
     <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() {