summaryrefslogtreecommitdiff
path: root/share/www/script/test/http.js
diff options
context:
space:
mode:
authorRobert Newson <rnewson@apache.org>2010-07-27 11:02:36 +0000
committerRobert Newson <rnewson@apache.org>2010-07-27 11:02:36 +0000
commit89d0b4600cc80cb507b513c4b76af9c1eb60fb22 (patch)
treee008483a43c59cd40d6dd6cdc4f28073cbedc41e /share/www/script/test/http.js
parent4b0948ddb3a428f8a5330e05745b2fbd4ccf9375 (diff)
fix CLI js test suite.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@979642 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/test/http.js')
-rw-r--r--share/www/script/test/http.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/www/script/test/http.js b/share/www/script/test/http.js
index 39f58491..5f46af52 100644
--- a/share/www/script/test/http.js
+++ b/share/www/script/test/http.js
@@ -25,7 +25,7 @@ couchTests.http = function(debug) {
var xhr = CouchDB.request("PUT", "/test_suite_db/test", {body: "{}"});
var host = CouchDB.host;
- TEquals(window.location.protocol + "//" + host + "/test_suite_db/test",
+ TEquals(CouchDB.protocol + host + "/test_suite_db/test",
xhr.getResponseHeader("Location"),
"should include ip address");
@@ -34,7 +34,7 @@ couchTests.http = function(debug) {
headers: {"X-Forwarded-Host": "mysite.com"}
});
- TEquals(window.location.protocol + "//" + "mysite.com/test_suite_db/test2",
+ TEquals(CouchDB.protocol + "mysite.com/test_suite_db/test2",
xhr.getResponseHeader("Location"),
"should include X-Forwarded-Host");
@@ -47,7 +47,7 @@ couchTests.http = function(debug) {
body: "{}",
headers: {"X-Host": "mysite2.com"}
});
- TEquals(window.location.protocol + "//" + "mysite2.com/test_suite_db/test3",
+ TEquals(CouchDB.protocol + "mysite2.com/test_suite_db/test3",
xhr.getResponseHeader("Location"),
"should include X-Host");
});