Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio-main
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Hardik Juneja
jio-main
Commits
5b2ca145
Commit
5b2ca145
authored
Jan 22, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revisions storage "put" tests added
parent
d79ef483
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
test/jiotests.js
test/jiotests.js
+42
-0
No files found.
test/jiotests.js
View file @
5b2ca145
...
...
@@ -1349,6 +1349,48 @@ test ("Put", function(){
"
Check document tree
"
);
// put + revision history
o
.
doc
=
{
"
_id
"
:
"
put1
"
,
"
_revs
"
:
[
"
3-rh3
"
,
"
2-rh2
"
,
"
1-rh1
"
],
"
title
"
:
"
myPut3
"
};
o
.
spy
(
o
,
"
value
"
,
{
"
id
"
:
"
put1
"
,
"
ok
"
:
true
,
"
rev
"
:
"
3-rh3
"
},
"
Put + revision history
"
);
o
.
jio
.
put
(
o
.
doc
,
o
.
f
);
o
.
tick
(
o
);
// check document
o
.
doc
.
_id
=
"
put1.3-rh3
"
;
delete
o
.
doc
.
_revs
;
deepEqual
(
localstorage
.
getItem
(
o
.
localpath
+
"
/put1.3-rh3
"
),
o
.
doc
,
"
Check document
"
);
// check document tree
o
.
doc_tree
.
children
.
unshift
({
"
rev
"
:
"
1-rh1
"
,
"
status
"
:
"
missing
"
,
"
children
"
:
[{
"
rev
"
:
"
2-rh2
"
,
"
status
"
:
"
missing
"
,
"
children
"
:
[{
"
rev
"
:
"
3-rh3
"
,
"
status
"
:
"
available
"
,
"
children
"
:
[]
}]
}]
});
deepEqual
(
localstorage
.
getItem
(
o
.
localpath
+
"
/put1.revision_tree.json
"
),
o
.
doc_tree
,
"
Check document tree
"
);
o
.
jio
.
stop
();
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment