You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by jc...@apache.org on 2010/09/25 20:55:23 UTC
svn commit: r1001295 -
/couchdb/trunk/share/www/script/test/update_documents.js
Author: jchris
Date: Sat Sep 25 18:55:23 2010
New Revision: 1001295
URL: http://svn.apache.org/viewvc?rev=1001295&view=rev
Log:
update documents test assertions
Modified:
couchdb/trunk/share/www/script/test/update_documents.js
Modified: couchdb/trunk/share/www/script/test/update_documents.js
URL: http://svn.apache.org/viewvc/couchdb/trunk/share/www/script/test/update_documents.js?rev=1001295&r1=1001294&r2=1001295&view=diff
==============================================================================
--- couchdb/trunk/share/www/script/test/update_documents.js (original)
+++ couchdb/trunk/share/www/script/test/update_documents.js Sat Sep 25 18:55:23 2010
@@ -113,9 +113,13 @@ couchTests.update_documents = function(d
T(JSON.parse(xhr.responseText).error == "method_not_allowed");
// // hello update world (non-existing docid)
+ xhr = CouchDB.request("GET", "/test_suite_db/nonExistingDoc");
+ T(xhr.status == 404);
xhr = CouchDB.request("PUT", "/test_suite_db/_design/update/_update/hello/nonExistingDoc");
T(xhr.status == 201);
T(xhr.responseText == "<p>New World</p>");
+ xhr = CouchDB.request("GET", "/test_suite_db/nonExistingDoc");
+ T(xhr.status == 200);
// in place update
xhr = CouchDB.request("PUT", "/test_suite_db/_design/update/_update/in-place/"+docid+'?field=title&value=test');