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
eeeb06e6
Commit
eeeb06e6
authored
Jan 08, 2013
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revision-Local Storage Fix Indentation
parent
7df4a30d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
test/jiotests.js
test/jiotests.js
+9
-8
No files found.
test/jiotests.js
View file @
eeeb06e6
...
...
@@ -1577,8 +1577,8 @@ test ("Scenario", function(){
o
.
rev
=
"
1-
"
+
o
.
hex
;
o
.
spy
(
o
,
"
value
"
,
{
"
ok
"
:
true
,
"
id
"
:
"
sample1
"
,
"
rev
"
:
o
.
rev
},
"
Then, I create a new document (no attachment), my application
"
+
"
keep the revision in memory
"
);
"
Then, I create a new document (no attachment), my application
"
+
"
keep the revision in memory
"
);
o
.
jio
.
put
(
o
.
doc
,
o
.
f
);
o
.
tick
(
o
);
...
...
@@ -1594,7 +1594,7 @@ test ("Scenario", function(){
o
.
localpath
=
"
jio/localstorage/usam1/asam1
"
;
// Create a new JIO in a new tab
ok
(
o
.
jio2
,
"
Now, I am opening a new tab, with the same application
"
+
ok
(
o
.
jio2
,
"
Now, I am opening a new tab, with the same application
"
+
"
and the same storage tree
"
);
// Get the document from the first storage
...
...
@@ -1620,8 +1620,9 @@ test ("Scenario", function(){
o
.
tick
(
o
);
// MODFIY first version
o
.
doc_1
=
{
"
_id
"
:
"
sample1
"
,
"
_rev
"
:
o
.
rev
,
"
title
"
:
"
mySample1_modified
"
};
o
.
doc_1
=
{
"
_id
"
:
"
sample1
"
,
"
_rev
"
:
o
.
rev
,
"
title
"
:
"
mySample1_modified
"
};
o
.
revisions_1
=
{
"
start
"
:
1
,
"
ids
"
:[
o
.
rev
.
split
(
'
-
'
)[
1
]
]};
o
.
hex_1
=
generateRevisionHash
(
o
.
doc_1
,
o
.
revisions_1
);
...
...
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