Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio_mebibou
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
Alexandra Rogova
jio_mebibou
Commits
73d5fdb6
Commit
73d5fdb6
authored
Aug 29, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jio localstorage repair tests added
parent
332b7754
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 @
73d5fdb6
...
...
@@ -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