couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject svn commit: r835195 - /couchdb/trunk/share/www/script/test/erlang_views.js
Date Thu, 12 Nov 2009 02:17:45 GMT
Author: davisp
Date: Thu Nov 12 02:17:41 2009
New Revision: 835195

URL: http://svn.apache.org/viewvc?rev=835195&view=rev
Log:
Whoops. No alerts in tests plzkthx.

Forgot to replace a debugging alert.


Modified:
    couchdb/trunk/share/www/script/test/erlang_views.js

Modified: couchdb/trunk/share/www/script/test/erlang_views.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/test/erlang_views.js?rev=835195&r1=835194&r2=835195&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/test/erlang_views.js (original)
+++ couchdb/trunk/share/www/script/test/erlang_views.js Thu Nov 12 02:17:41 2009
@@ -127,6 +127,7 @@
       
       var rfun = 'fun(Keys, Values, RR) -> length(Values) end.';
       var results = db.query(mfun, rfun, null, null, "erlang");
-      alert(JSON.stringify(results));
+      T(results.rows[0].key === null, "Returned a reduced value.");
+      T(results.rows[0].value > 0, "Reduce value exists.");
     });
 };



Mime
View raw message