diff options
author | Noah Slater <nslater@apache.org> | 2009-07-06 00:33:50 +0000 |
---|---|---|
committer | Noah Slater <nslater@apache.org> | 2009-07-06 00:33:50 +0000 |
commit | 282b96ddd9a84b740788c2358ec0f5fedafb7cc6 (patch) | |
tree | fb48e605ceb8079d0195d3b1ec0eca7110fa7ef2 /share/www/script/test/basics.js | |
parent | b5cc085d3bc6316063f14adedf20632ee904875d (diff) |
trimmed trailing whitespace
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@791350 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/test/basics.js')
-rw-r--r-- | share/www/script/test/basics.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/share/www/script/test/basics.js b/share/www/script/test/basics.js index 47e94d2c..62ac2df9 100644 --- a/share/www/script/test/basics.js +++ b/share/www/script/test/basics.js @@ -13,7 +13,7 @@ // Do some basic tests. couchTests.basics = function(debug) { var result = JSON.parse(CouchDB.request("GET", "/").responseText); - T(result.couchdb == "Welcome"); + T(result.couchdb == "Welcome"); var db = new CouchDB("test_suite_db"); db.deleteDb(); @@ -31,11 +31,11 @@ couchTests.basics = function(debug) { // creating a new DB should return Location header xhr = CouchDB.request("DELETE", "/test_suite_db"); xhr = CouchDB.request("PUT", "/test_suite_db"); - TEquals("/test_suite_db", + TEquals("/test_suite_db", xhr.getResponseHeader("Location").substr(-14), "should return Location header to newly created document"); - TEquals("http://", + TEquals("http://", xhr.getResponseHeader("Location").substr(0, 7), "should return absolute Location header to newly created document"); @@ -66,7 +66,7 @@ couchTests.basics = function(debug) { // make sure you can do a seq=true option var doc = db.open(id, {local_seq:true}); T(doc._local_seq == 1); - + // Create some more documents. // Notice the use of the ok member on the return result. @@ -161,11 +161,11 @@ couchTests.basics = function(debug) { var xhr = CouchDB.request("PUT", "/test_suite_db/newdoc", { body: JSON.stringify({"a":1}) }); - TEquals("/test_suite_db/newdoc", + TEquals("/test_suite_db/newdoc", xhr.getResponseHeader("Location").substr(-21), "should return Location header to newly created document"); - TEquals("http://", + TEquals("http://", xhr.getResponseHeader("Location").substr(0, 7), "should return absolute Location header to newly created document"); @@ -182,12 +182,12 @@ couchTests.basics = function(debug) { ] var test_doc = function(info) { var data = JSON.stringify(info[1]); - + xhr = CouchDB.request("PUT", "/test_suite_db/" + info[0], {body: data}); T(xhr.status == 500); result = JSON.parse(xhr.responseText); T(result.error == "doc_validation"); - + xhr = CouchDB.request("POST", "/test_suite_db/", {body: data}); T(xhr.status == 500); result = JSON.parse(xhr.responseText); |