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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aurel
jio
Commits
0b89c735
Commit
0b89c735
authored
Aug 29, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jio localstorage repair tests added
parent
c7f20bc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
test/jio.storage/localstorage.asynctests.js
test/jio.storage/localstorage.asynctests.js
+13
-7
No files found.
test/jio.storage/localstorage.asynctests.js
View file @
0b89c735
...
...
@@ -645,7 +645,7 @@
});
test
(
"
Check & Repair
"
,
function
()
{
expect
(
1
7
);
expect
(
1
8
);
var
o
=
{},
jio
=
jIO
.
createJIO
({
"
type
"
:
"
local
"
,
"
username
"
:
"
urepair
"
,
...
...
@@ -676,14 +676,13 @@
"
jio/localstorage/urepair/arepair/cor
"
,
"
blue
"
);
// put an unreferenced attachment
util
.
json_local_storage
.
setItem
(
"
jio/localstorage/urepair/arepair/unref/aa
"
,
"
attachment content
"
);
};
// put an unreferenced attachment
util
.
json_local_storage
.
setItem
(
"
jio/localstorage/urepair/arepair/unref/aa
"
,
"
attachment content
"
);
o
.
putCorruptedDocuments
();
return
jIO
.
Promise
.
all
([
...
...
@@ -869,6 +868,13 @@
o
.
testGetAnswers
(
answers
);
}).
then
(
function
()
{
// unreferenced attachment must be removed
deepEqual
(
util
.
json_local_storage
.
getItem
(
"
jio/localstorage/urepair/arepair/unref/aa
"
),
null
,
"
Unreferenced attachment removed
"
);
}).
always
(
start
);
});
...
...
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