couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject svn commit: r793403 - /couchdb/trunk/share/www/custom_test.html
Date Sun, 12 Jul 2009 20:26:48 GMT
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() {



Mime
View raw message