couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1035999 - /couchdb/trunk/share/www/script/test/view_pagination.js
Date Wed, 17 Nov 2010 12:39:09 GMT
Author: fdmanana
Date: Wed Nov 17 12:39:09 2010
New Revision: 1035999

URL: http://svn.apache.org/viewvc?rev=1035999&view=rev
Log:
Added missing semicolons to the view_pagination.js test.

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

Modified: couchdb/trunk/share/www/script/test/view_pagination.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/test/view_pagination.js?rev=1035999&r1=1035998&r2=1035999&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/test/view_pagination.js (original)
+++ couchdb/trunk/share/www/script/test/view_pagination.js Wed Nov 17 12:39:09 2010
@@ -19,7 +19,7 @@ couchTests.view_pagination = function(de
     var docs = makeDocs(0, 100);
     db.bulkSave(docs);
 
-    var queryFun = function(doc) { emit(doc.integer, null) };
+    var queryFun = function(doc) { emit(doc.integer, null); };
     var i;
 
     // page through the view ascending
@@ -29,9 +29,9 @@ couchTests.view_pagination = function(de
         startkey_docid: i,
         limit: 10
       });
-      T(queryResults.rows.length == 10)
-      T(queryResults.total_rows == docs.length)
-      T(queryResults.offset == i)
+      T(queryResults.rows.length == 10);
+      T(queryResults.total_rows == docs.length);
+      T(queryResults.offset == i);
       var j;
       for (j = 0; j < 10;j++) {
         T(queryResults.rows[j].key == i + j);
@@ -46,9 +46,9 @@ couchTests.view_pagination = function(de
         descending: true,
         limit: 10
       });
-      T(queryResults.rows.length == 10)
-      T(queryResults.total_rows == docs.length)
-      T(queryResults.offset == docs.length - i - 1)
+      T(queryResults.rows.length == 10);
+      T(queryResults.total_rows == docs.length);
+      T(queryResults.offset == docs.length - i - 1);
       var j;
       for (j = 0; j < 10; j++) {
         T(queryResults.rows[j].key == i - j);
@@ -63,9 +63,9 @@ couchTests.view_pagination = function(de
         descending: false,
         limit: 10
       });
-      T(queryResults.rows.length == 10)
-      T(queryResults.total_rows == docs.length)
-      T(queryResults.offset == i)
+      T(queryResults.rows.length == 10);
+      T(queryResults.total_rows == docs.length);
+      T(queryResults.offset == i);
       var j;
       for (j = 0; j < 10;j++) {
         T(queryResults.rows[j].key == i + j);
@@ -80,9 +80,9 @@ couchTests.view_pagination = function(de
       endkey_docid: 40
     });
 
-    T(queryResults.rows.length == 35)
-    T(queryResults.total_rows == docs.length)
-    T(queryResults.offset == 1)
+    T(queryResults.rows.length == 35);
+    T(queryResults.total_rows == docs.length);
+    T(queryResults.offset == 1);
     T(queryResults.rows[0].id == "1");
     T(queryResults.rows[1].id == "10");
     T(queryResults.rows[2].id == "11");



Mime
View raw message