Commit 237a2b74 authored by Tristan Cavelier's avatar Tristan Cavelier

split/reduce some too long lines

parent 43064326
...@@ -1380,11 +1380,10 @@ test ("Remove", function(){ ...@@ -1380,11 +1380,10 @@ test ("Remove", function(){
o.doc_myremove1 = {"_id": "remove1", "title": "myRemove1"}; o.doc_myremove1 = {"_id": "remove1", "title": "myRemove1"};
o.doc_myremove2 = {"_id": "remove1", "title": "myRemove2"}; o.doc_myremove2 = {"_id": "remove1", "title": "myRemove2"};
// revs_info 1-rev1 document version o.very_old_rev = "1-veryoldrev";
o.revs_info = [];
o.very_old_rev = "1-"+hex_sha256(JSON.stringify(o.doc_myremove1)+JSON.stringify(o.revs_info));
localstorage.setItem(o.localpath+"/remove1."+o.very_old_rev, o.doc_myremove1); localstorage.setItem(o.localpath+"/remove1."+o.very_old_rev,
o.doc_myremove1);
localstorage.setItem(o.localpath+"/remove1.1-rev2", o.doc_myremove1); localstorage.setItem(o.localpath+"/remove1.1-rev2", o.doc_myremove1);
// add attachment // add attachment
...@@ -1465,8 +1464,10 @@ test ("Remove", function(){ ...@@ -1465,8 +1464,10 @@ test ("Remove", function(){
o.revisions = {"start":1,"ids":["rev2"] }; o.revisions = {"start":1,"ids":["rev2"] };
o.second_old_rev = "2-"+generateRevisionHash(o.doc_myremove2, o.revisions); o.second_old_rev = "2-"+generateRevisionHash(o.doc_myremove2, o.revisions);
localstorage.setItem(o.localpath+"/remove1."+o.second_old_rev, o.doc_myremove2); localstorage.setItem(o.localpath+"/remove1."+o.second_old_rev,
localstorage.setItem(o.localpath+"/remove1."+o.second_old_rev+"/remove3", "stu"); o.doc_myremove2);
localstorage.setItem(o.localpath+"/remove1."+o.second_old_rev+"/remove3",
"stu");
o.doctree = {"children":[{ o.doctree = {"children":[{
"rev": o.very_old_rev, "status": "available", "children": [{ "rev": o.very_old_rev, "status": "available", "children": [{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment