couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [8/9] git commit: Compatibility with the CLI test runner
Date Wed, 29 Feb 2012 11:09:59 GMT
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) <jhs@apache.org>
Authored: Wed Feb 29 03:41:31 2012 +0000
Committer: Jason Smith (air) <jhs@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() {


Mime
View raw message