Skip to content

Commit

Permalink
Failing tests use a 1.1.x feature. Disable them for now (as using Com…
Browse files Browse the repository at this point in the history
…monJS modules in spatial functions wasn't supported officially anyway).
  • Loading branch information
vmx committed Mar 1, 2011
1 parent 5adc56f commit f7bd9df
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions share/www/script/test/spatial.js
Expand Up @@ -21,11 +21,12 @@ couchTests.spatial = function(debug) {
var designDoc = {
_id:"_design/spatial",
language: "javascript",
/* This is a 1.1.x feature, disable for now
views: {
lib: {
geo: "exports.type = 'Point';"
}
},
}, */
spatial : {
basicIndex : stringFun(function(doc) {
emit({
Expand All @@ -46,14 +47,15 @@ couchTests.spatial = function(debug) {
if (doc._id.substr(0,3)=="geo") {
emit(doc.geom, doc.string);
}
}),
})
/* This is a 1.1.x feature, disable for now
withCommonJs : stringFun(function(doc) {
var lib = require('views/lib/geo');
emit({
type: lib.type,
coordinates: [doc.loc[0], doc.loc[1]]
}, doc.string);
})
})*/
}
};

Expand Down Expand Up @@ -207,14 +209,15 @@ couchTests.spatial = function(debug) {
"if bounding box calculation was correct, it should at least" +
" return the geoGeometryCollection");

/* This is a 1.1.x feature, disable for now
// test if CommonJS modules can be imported
bbox = [-180, -90, 180, 90];
xhr = CouchDB.request("GET", url_pre + "withCommonJs?bbox=" + bbox.join(","));
T(xhr.status == 200);
TEquals(['0','1','2','3','4','5','6','7','8','9'],
extract_ids(xhr.responseText),
"should return all geometries (test with CommonJS)");

*/

// Test plane wrapping

Expand Down

0 comments on commit f7bd9df

Please sign in to comment.