Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio
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
Douglas
jio
Commits
2831cb71
Commit
2831cb71
authored
Jan 08, 2013
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix Revision-Local Storage Test Scenario
parent
fa9abed5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/jio.storage/revisionstorage.js
src/jio.storage/revisionstorage.js
+0
-1
test/jiotests.js
test/jiotests.js
+6
-5
No files found.
src/jio.storage/revisionstorage.js
View file @
2831cb71
...
@@ -680,7 +680,6 @@ jIO.addStorageType('revision', function (spec, my) {
...
@@ -680,7 +680,6 @@ jIO.addStorageType('revision', function (spec, my) {
doctree
,
doctree
,
command
.
cloneOption
(),
command
.
cloneOption
(),
function
(
response
)
{
function
(
response
)
{
that
.
success
({
that
.
success
({
"
ok
"
:
true
,
"
ok
"
:
true
,
"
id
"
:
command
.
getDocId
(),
"
id
"
:
command
.
getDocId
(),
...
...
test/jiotests.js
View file @
2831cb71
...
@@ -1424,7 +1424,6 @@ test ("Remove", function(){
...
@@ -1424,7 +1424,6 @@ test ("Remove", function(){
o
.
rev
=
"
3-
"
+
generateRevisionHash
(
o
.
doc_myremove1
,
o
.
revisions
);
o
.
rev
=
"
3-
"
+
generateRevisionHash
(
o
.
doc_myremove1
,
o
.
revisions
);
// 4. remove existing attachment with revision
// 4. remove existing attachment with revision
o
.
spy
(
o
,
"
value
"
,
{
"
ok
"
:
true
,
"
id
"
:
"
remove1.
"
+
o
.
rev
,
"
rev
"
:
o
.
rev
},
o
.
spy
(
o
,
"
value
"
,
{
"
ok
"
:
true
,
"
id
"
:
"
remove1.
"
+
o
.
rev
,
"
rev
"
:
o
.
rev
},
"
Remove existing attachment (revision)
"
);
"
Remove existing attachment (revision)
"
);
o
.
jio
.
remove
({
"
_id
"
:
"
remove1/remove2
"
,
"
_rev
"
:
o
.
old_rev
},
o
.
f
);
o
.
jio
.
remove
({
"
_id
"
:
"
remove1/remove2
"
,
"
_rev
"
:
o
.
old_rev
},
o
.
f
);
...
@@ -1673,13 +1672,15 @@ test ("Scenario", function(){
...
@@ -1673,13 +1672,15 @@ test ("Scenario", function(){
o
.
tick
(
o
);
o
.
tick
(
o
);
// 13. REMOVE one of the two conflicting versions
// 13. REMOVE one of the two conflicting versions
o
.
revisions
=
{
"
start
"
:
1
,
"
ids
"
:[
o
.
rev
.
split
(
'
-
'
)[
1
]]};
o
.
revisions
=
{
"
start
"
:
2
,
"
ids
"
:[
o
.
doc_myremove4
=
{
"
ok
"
:
true
,
"
id
"
:
"
sample1
"
,
"
rev
"
:
o
.
rev_1
};
o
.
rev_1
.
split
(
'
-
'
)[
1
],
o
.
rev
.
split
(
'
-
'
)[
1
]
o
.
rev_3
=
"
3-
"
+
generateRevisionHash
(
o
.
doc_myremove4
,
o
.
revisions
);
]};
o
.
doc_myremove3
=
{
"
_id
"
:
"
sample1
"
,
"
_rev
"
:
o
.
rev_1
};
o
.
rev_3
=
"
3-
"
+
generateRevisionHash
(
o
.
doc_myremove3
,
o
.
revisions
,
true
);
o
.
spy
(
o
,
"
value
"
,
{
"
ok
"
:
true
,
"
id
"
:
"
sample1
"
,
"
rev
"
:
o
.
rev_3
},
o
.
spy
(
o
,
"
value
"
,
{
"
ok
"
:
true
,
"
id
"
:
"
sample1
"
,
"
rev
"
:
o
.
rev_3
},
"
Remove one of the conflicting document version
"
);
"
Remove one of the conflicting document version
"
);
o
.
jio
.
remove
({
"
_id
"
:
"
sample1
"
,
"
_rev
"
:
o
.
rev_
2
},
o
.
f
);
o
.
jio
.
remove
({
"
_id
"
:
"
sample1
"
,
"
_rev
"
:
o
.
rev_
1
},
o
.
f
);
o
.
tick
(
o
);
o
.
tick
(
o
);
// 14. END
// 14. END
...
...
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