You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2010/06/03 17:09:59 UTC

svn commit: r951024 - in /couchdb/branches/0.11.x/share/www/script/test: view_collation.js view_collation_raw.js

Author: jan
Date: Thu Jun  3 15:09:59 2010
New Revision: 951024

URL: http://svn.apache.org/viewvc?rev=951024&view=rev
Log:
Fix test suite in Chromium. Patch by Glen Rempe. Closes COUCHDB-546

Modified:
    couchdb/branches/0.11.x/share/www/script/test/view_collation.js
    couchdb/branches/0.11.x/share/www/script/test/view_collation_raw.js

Modified: couchdb/branches/0.11.x/share/www/script/test/view_collation.js
URL: http://svn.apache.org/viewvc/couchdb/branches/0.11.x/share/www/script/test/view_collation.js?rev=951024&r1=951023&r2=951024&view=diff
==============================================================================
--- couchdb/branches/0.11.x/share/www/script/test/view_collation.js (original)
+++ couchdb/branches/0.11.x/share/www/script/test/view_collation.js Thu Jun  3 15:09:59 2010
@@ -90,27 +90,27 @@ couchTests.view_collation = function(deb
   // the inclusive_end=true functionality is limited to endkey currently
   // if you need inclusive_start=false for startkey, please do implement. ;)
   var rows = db.query(queryFun, null, {endkey : "b", inclusive_end:true}).rows;
-  T(rows[rows.length-1].key == "b")
+  T(rows[rows.length-1].key == "b");
   // descending=true
   var rows = db.query(queryFun, null, {endkey : "b",
     descending:true, inclusive_end:true}).rows;
-  T(rows[rows.length-1].key == "b")
+  T(rows[rows.length-1].key == "b");
 
   // test inclusive_end=false
   var rows = db.query(queryFun, null, {endkey : "b", inclusive_end:false}).rows;
-  T(rows[rows.length-1].key == "aa")
+  T(rows[rows.length-1].key == "aa");
   // descending=true
   var rows = db.query(queryFun, null, {endkey : "b",
     descending:true, inclusive_end:false}).rows;
-  T(rows[rows.length-1].key == "B")
+  T(rows[rows.length-1].key == "B");
   
   var rows = db.query(queryFun, null, {
     endkey : "b", endkey_docid: "10",
     inclusive_end:false}).rows;
-  T(rows[rows.length-1].key == "aa")
+  T(rows[rows.length-1].key == "aa");
   
   var rows = db.query(queryFun, null, {
     endkey : "b", endkey_docid: "11",
     inclusive_end:false}).rows;
-  T(rows[rows.length-1].key == "b")
+  T(rows[rows.length-1].key == "b");
 };

Modified: couchdb/branches/0.11.x/share/www/script/test/view_collation_raw.js
URL: http://svn.apache.org/viewvc/couchdb/branches/0.11.x/share/www/script/test/view_collation_raw.js?rev=951024&r1=951023&r2=951024&view=diff
==============================================================================
--- couchdb/branches/0.11.x/share/www/script/test/view_collation_raw.js (original)
+++ couchdb/branches/0.11.x/share/www/script/test/view_collation_raw.js Thu Jun  3 15:09:59 2010
@@ -97,27 +97,27 @@ couchTests.view_collation_raw = function
   // the inclusive_end=true functionality is limited to endkey currently
   // if you need inclusive_start=false for startkey, please do implement. ;)
   var rows = db.view("test/test", {endkey : "b", inclusive_end:true}).rows;
-  T(rows[rows.length-1].key == "b")
+  T(rows[rows.length-1].key == "b");
   // descending=true
   var rows = db.view("test/test", {endkey : "b",
     descending:true, inclusive_end:true}).rows;
-  T(rows[rows.length-1].key == "b")
+  T(rows[rows.length-1].key == "b");
 
   // test inclusive_end=false
   var rows = db.view("test/test", {endkey : "b", inclusive_end:false}).rows;
-  T(rows[rows.length-1].key == "aa")
+  T(rows[rows.length-1].key == "aa");
   // descending=true
   var rows = db.view("test/test", {endkey : "b",
     descending:true, inclusive_end:false}).rows;
-  T(rows[rows.length-1].key == "ba")
+  T(rows[rows.length-1].key == "ba");
   
   var rows = db.view("test/test", {
     endkey : "b", endkey_docid: "10",
     inclusive_end:false}).rows;
-  T(rows[rows.length-1].key == "aa")
+  T(rows[rows.length-1].key == "aa");
   
   var rows = db.view("test/test", {
     endkey : "b", endkey_docid: "11",
     inclusive_end:false}).rows;
-  T(rows[rows.length-1].key == "aa")
+  T(rows[rows.length-1].key == "aa");
 };