couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject svn commit: r1156508 - /couchdb/trunk/share/www/script/test/view_collation_raw.js
Date Thu, 11 Aug 2011 06:39:42 GMT
Author: davisp
Date: Thu Aug 11 06:39:41 2011
New Revision: 1156508

URL: http://svn.apache.org/viewvc?rev=1156508&view=rev
Log:
Whitespace and comment clarification.

Patch by: Jason Smith
Re: COUCHDB-1228 3/4



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

Modified: couchdb/trunk/share/www/script/test/view_collation_raw.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/test/view_collation_raw.js?rev=1156508&r1=1156507&r2=1156508&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/test/view_collation_raw.js (original)
+++ couchdb/trunk/share/www/script/test/view_collation_raw.js Thu Aug 11 06:39:41 2011
@@ -76,12 +76,14 @@ couchTests.view_collation_raw = function
     }
   }
   T(db.save(designDoc).ok);
+
+  // Confirm that everything collates correctly.
   var rows = db.view("test/test").rows;
   for (i=0; i<values.length; i++) {
     T(equals(rows[i].key, values[i]));
   }
 
-  // everything has collated correctly. Now to check the descending output
+  // Check the descending output.
   rows = db.view("test/test", {descending: true}).rows;
   for (i=0; i<values.length; i++) {
     T(equals(rows[i].key, values[values.length - 1 -i]));



Mime
View raw message