You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by jh...@apache.org on 2012/02/29 12:09:59 UTC
[8/9] git commit: Compatibility with the CLI test runner
Compatibility with the CLI test runner
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/26968505
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/26968505
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/26968505
Branch: refs/heads/COUCHDB-1416
Commit: 269685050301e5c8759547c275b79a1814d3a5d8
Parents: 1451ee5
Author: Jason Smith (air) <jh...@apache.org>
Authored: Wed Feb 29 03:41:31 2012 +0000
Committer: Jason Smith (air) <jh...@apache.org>
Committed: Wed Feb 29 03:41:31 2012 +0000
----------------------------------------------------------------------
share/www/script/test/rewrite.js | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/26968505/share/www/script/test/rewrite.js
----------------------------------------------------------------------
diff --git a/share/www/script/test/rewrite.js b/share/www/script/test/rewrite.js
index 5b8c74f..a30cd4f 100644
--- a/share/www/script/test/rewrite.js
+++ b/share/www/script/test/rewrite.js
@@ -455,13 +455,10 @@ couchTests.rewrite = function(debug) {
var res = CouchDB.request("GET", "/test_suite_db/_design/rwtest/_rewrite/testShow");
TEquals('/test_suite_db/_design/rwtest/_rewrite/testShow', res.responseText, "requested_path should equal requested");
- var host = 'localhost:5984';
- if (window) host = window.location.host;
-
// test a vhost with a path as well
run_on_modified_server(
[{section: "vhosts",
- key: encodeURIComponent(host + '/path'),
+ key: encodeURIComponent(CouchDB.host + '/path'),
value: "/test_suite_db/_design/rwtest/_rewrite/"}
],
function(){
@@ -483,7 +480,7 @@ couchTests.rewrite = function(debug) {
// so that vhosts gets remove first, then the secure_rewrite
run_on_modified_server(
[{section: "vhosts",
- key: encodeURIComponent(host),
+ key: encodeURIComponent(CouchDB.host),
value: "/test_suite_db/_design/rwtest/_rewrite/"}
],
function() {