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 2011/08/11 08:39:42 UTC

svn commit: r1156508 - /couchdb/trunk/share/www/script/test/view_collation_raw.js

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]));