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 22:26:48 UTC

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

Author: davisp
Date: Sun Jul 12 20:26:48 2009
New Revision: 793403

URL: http://svn.apache.org/viewvc?rev=793403&view=rev
Log:
Added an implementation of Tequals(expect, found, mesg)

As per request of Jan.


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=793403&r1=793402&r2=793403&view=diff
==============================================================================
--- couchdb/trunk/share/www/custom_test.html (original)
+++ couchdb/trunk/share/www/custom_test.html Sun Jul 12 20:26:48 2009
@@ -32,6 +32,11 @@
         }
       }
 
+      function Tequals(expect, found, descr) {
+        var mesg = "expected '" + expect + "', got '" + found + "' " + descr;
+        T(expect === found, mesg);
+      }
+
       $(function() {
         $("#status").removeClass("failure").removeClass("success");
         $("#viewcode button.run").click(function() {