summaryrefslogtreecommitdiff
path: root/share/www/script/test/basics.js
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2009-03-13 22:15:34 +0000
committerJohn Christopher Anderson <jchris@apache.org>2009-03-13 22:15:34 +0000
commit9007e2d21dea8b0185c0096b30364a8ee40a3867 (patch)
tree7d8dacb2c8cd619f18dfab8fdb40d146ac28c85a /share/www/script/test/basics.js
parent65608e14e8911b33c30178d717d745edc9f66c17 (diff)
Commit Damien's rep_security branch to trunk.
Changes bulk_docs conflict checking. Breaks file format, see mailing list for data upgrade procedure, or http://wiki.apache.org/couchdb/Breaking_changes git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@753448 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/test/basics.js')
-rw-r--r--share/www/script/test/basics.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/share/www/script/test/basics.js b/share/www/script/test/basics.js
index 89e99a64..2837b77a 100644
--- a/share/www/script/test/basics.js
+++ b/share/www/script/test/basics.js
@@ -14,14 +14,14 @@
couchTests.basics = function(debug) {
var result = JSON.parse(CouchDB.request("GET", "/").responseText);
T(result.couchdb == "Welcome");
-
+
var db = new CouchDB("test_suite_db");
db.deleteDb();
// bug COUCHDB-100: DELETE on non-existent DB returns 500 instead of 404
db.deleteDb();
-
-db.createDb();
+
+ db.createDb();
// PUT on existing DB should return 412 instead of 500
xhr = CouchDB.request("PUT", "/test_suite_db/");
@@ -122,14 +122,14 @@ db.createDb();
// make sure we can still open the old rev of the deleted doc
T(db.open(existingDoc._id, {rev: existingDoc._rev}) != null);
-
+
// make sure restart works
T(db.ensureFullCommit().ok);
restartServer();
-
+
// make sure we can still open
T(db.open(existingDoc._id, {rev: existingDoc._rev}) != null);
-
+
// test that the POST response has a Location header
var xhr = CouchDB.request("POST", "/test_suite_db", {
body: JSON.stringify({"foo":"bar"})