diff options
author | Robert Newson <rnewson@apache.org> | 2010-07-27 11:02:36 +0000 |
---|---|---|
committer | Robert Newson <rnewson@apache.org> | 2010-07-27 11:02:36 +0000 |
commit | 89d0b4600cc80cb507b513c4b76af9c1eb60fb22 (patch) | |
tree | e008483a43c59cd40d6dd6cdc4f28073cbedc41e /share/www/script/test/basics.js | |
parent | 4b0948ddb3a428f8a5330e05745b2fbd4ccf9375 (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/basics.js')
-rw-r--r-- | share/www/script/test/basics.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/share/www/script/test/basics.js b/share/www/script/test/basics.js index 5b608b84..f0792a1e 100644 --- a/share/www/script/test/basics.js +++ b/share/www/script/test/basics.js @@ -37,9 +37,8 @@ couchTests.basics = function(debug) { TEquals(dbname, xhr.getResponseHeader("Location").substr(-dbname.length), "should return Location header to newly created document"); - var expected = window.location.protocol + "//"; - TEquals(expected, - xhr.getResponseHeader("Location").substr(0, expected.length), + TEquals(CouchDB.protocol, + xhr.getResponseHeader("Location").substr(0, CouchDB.protocol.length), "should return absolute Location header to newly created document"); }); @@ -181,9 +180,8 @@ couchTests.basics = function(debug) { TEquals("/test_suite_db/newdoc", xhr.getResponseHeader("Location").substr(-21), "should return Location header to newly created document"); - var expected = window.location.protocol + "//"; - TEquals(expected, - xhr.getResponseHeader("Location").substr(0, expected.length), + TEquals(CouchDB.protocol, + xhr.getResponseHeader("Location").substr(0, CouchDB.protocol.length), "should return absolute Location header to newly created document"); // deleting a non-existent doc should be 404 |