diff options
Diffstat (limited to 'share')
-rw-r--r-- | share/www/script/test/view_update_seq.js | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/share/www/script/test/view_update_seq.js b/share/www/script/test/view_update_seq.js index cfda1a87..d46cb3c6 100644 --- a/share/www/script/test/view_update_seq.js +++ b/share/www/script/test/view_update_seq.js @@ -68,17 +68,23 @@ couchTests.view_update_seq = function(debug) { T(resp.rows.length == 1); T(resp.update_seq == 101); + db.save({"id":"00"}); + resp = db.view('test/all_docs', + {limit: 1, stale: "update_after", update_seq: true}); + T(resp.rows.length == 1); + T(resp.update_seq == 101); + resp = db.view('test/all_docs', {limit: 1, update_seq:true}); T(resp.rows.length == 1); - T(resp.update_seq == 102); + T(resp.update_seq == 103); resp = db.view('test/all_docs',{update_seq:true},["0","1"]); - T(resp.update_seq == 102); + T(resp.update_seq == 103); resp = db.view('test/all_docs',{update_seq:true},["0","1"]); - T(resp.update_seq == 102); + T(resp.update_seq == 103); resp = db.view('test/summate',{group:true, update_seq:true},["0","1"]); - T(resp.update_seq == 102); + T(resp.update_seq == 103); }; |