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/attachment_paths.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/attachment_paths.js')
-rw-r--r-- | share/www/script/test/attachment_paths.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/share/www/script/test/attachment_paths.js b/share/www/script/test/attachment_paths.js index ef9fa869..245d2949 100644 --- a/share/www/script/test/attachment_paths.js +++ b/share/www/script/test/attachment_paths.js @@ -44,14 +44,14 @@ couchTests.attachment_paths = function(debug) { // lets try it with an escaped attachment id... // weird that it's at two urls var xhr = CouchDB.request("GET", "/"+dbName+"/bin_doc/foo%2Fbar.txt"); - T(xhr.status == 200); + T(xhr.status == 200); // xhr.responseText == "This is a base64 encoded text" var xhr = CouchDB.request("GET", "/"+dbName+"/bin_doc/foo/baz.txt"); T(xhr.status == 404); var xhr = CouchDB.request("GET", "/"+dbName+"/bin_doc/foo%252Fbaz.txt"); - T(xhr.status == 200); + T(xhr.status == 200); T(xhr.responseText == "We like percent two F."); // require a _rev to PUT @@ -59,7 +59,7 @@ couchTests.attachment_paths = function(debug) { headers:{"Content-Type":"text/plain;charset=utf-8"}, body:"Just some text" }); - T(xhr.status == 409); + T(xhr.status == 409); var xhr = CouchDB.request("PUT", "/"+dbName+"/bin_doc/foo/bar2.txt?rev=" + binAttDoc._rev, { body:"This is no base64 encoded text", @@ -77,7 +77,7 @@ couchTests.attachment_paths = function(debug) { T(binAttDoc._attachments["foo/bar2.txt"].length == 30); //// now repeat the while thing with a design doc - + // first just save a regular doc with an attachment that has a slash in the url. // (also gonna run an encoding check case) var binAttDoc = { @@ -120,7 +120,7 @@ couchTests.attachment_paths = function(debug) { T(xhr.status == 404); var xhr = CouchDB.request("GET", "/"+dbName+"/_design%2Fbin_doc/foo%252Fbaz.txt"); - T(xhr.status == 200); + T(xhr.status == 200); T(xhr.responseText == "We like percent two F."); // require a _rev to PUT @@ -128,7 +128,7 @@ couchTests.attachment_paths = function(debug) { headers:{"Content-Type":"text/plain;charset=utf-8"}, body:"Just some text" }); - T(xhr.status == 409); + T(xhr.status == 409); var xhr = CouchDB.request("PUT", "/"+dbName+"/_design%2Fbin_doc/foo/bar2.txt?rev=" + binAttDoc._rev, { body:"This is no base64 encoded text", |