couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject svn commit: r1135874 - /couchdb/branches/1.0.x/share/www/script/test/design_docs.js
Date Wed, 15 Jun 2011 00:41:31 GMT
Author: davisp
Date: Wed Jun 15 00:41:30 2011
New Revision: 1135874

URL: http://svn.apache.org/viewvc?rev=1135874&view=rev
Log:
Last backport included tests for commonjs in views.

Removing tests for features that don't exist.


Modified:
    couchdb/branches/1.0.x/share/www/script/test/design_docs.js

Modified: couchdb/branches/1.0.x/share/www/script/test/design_docs.js
URL: http://svn.apache.org/viewvc/couchdb/branches/1.0.x/share/www/script/test/design_docs.js?rev=1135874&r1=1135873&r2=1135874&view=diff
==============================================================================
--- couchdb/branches/1.0.x/share/www/script/test/design_docs.js (original)
+++ couchdb/branches/1.0.x/share/www/script/test/design_docs.js Wed Jun 15 00:41:30 2011
@@ -104,20 +104,6 @@ couchTests.design_docs = function(debug)
             (function(keys, values) {
               return makebigstring(16);
             }).toString()
-        },
-        lib : {
-          baz : "exports.baz = 'bam';",
-          foo : {
-            foo : "exports.foo = 'bar';",
-            boom : "exports.boom = 'ok';",
-            zoom : "exports.zoom = 'yeah';"
-          }
-        },
-        commonjs : {
-          map :
-            (function(doc) {
-              emit(null, require('views/lib/foo/boom').boom);
-            }).toString()
         }
       },
       shows: {
@@ -232,10 +218,6 @@ couchTests.design_docs = function(debug)
       len1 = len2 = len3 = 0;
     };
 
-    // test commonjs in map functions
-    resp = db.view("test/commonjs", {limit:1});
-    T(resp.rows[0].value == 'ok');
-
     // test that the _all_docs view returns correctly with keys
     var results = db.allDocs({startkey:"_design", endkey:"_design0"});
     T(results.rows.length == 1);



Mime
View raw message