diff options
author | Jan Lehnardt <jan@apache.org> | 2009-03-26 16:18:37 +0000 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2009-03-26 16:18:37 +0000 |
commit | a52f54c34d24ba82bbbab05e4582a977eb0c773f (patch) | |
tree | 77321d8078da846384450fbdbddddc5053f0eca6 /share/www/script/test | |
parent | fdb2475ea2924c918186f9c1e99ec4887ce512a7 (diff) |
whitespace
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@758717 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/test')
-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 06c73ddf..217f9aef 100644 --- a/share/www/script/test/basics.js +++ b/share/www/script/test/basics.js @@ -14,13 +14,13 @@ 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(); // PUT on existing DB should return 412 instead of 500 @@ -122,14 +122,14 @@ couchTests.basics = function(debug) { // 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"}) @@ -140,9 +140,9 @@ couchTests.basics = function(debug) { T(loc, "should have a Location header"); var locs = loc.split('/'); T(locs[4] == resp.id); - T(locs[3] == "test_suite_db"); - + T(locs[3] == "test_suite_db"); + // deleting a non-existent doc should be 404 xhr = CouchDB.request("DELETE", "/test_suite_db/doc-does-not-exist"); - T(xhr.status == 404); + T(xhr.status == 404); }; |