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
Vincent Bechu
jio
Commits
ddf61098
Commit
ddf61098
authored
Aug 23, 2017
by
Vincent Bechu
Committed by
Vincent Bechu
Aug 30, 2017
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[test] Add scenarii to test and update saferepair storage to pass them
parent
5d6e60dd
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
368 additions
and
307 deletions
+368
-307
examples/scenario.js
examples/scenario.js
+359
-296
examples/scenario_officejs.js
examples/scenario_officejs.js
+0
-8
src/jio.storage/saferepairstorage.js
src/jio.storage/saferepairstorage.js
+4
-3
test/tests.html
test/tests.html
+5
-0
No files found.
examples/scenario.js
View file @
ddf61098
This diff is collapsed.
Click to expand it.
examples/scenario_officejs.js
View file @
ddf61098
...
@@ -12,13 +12,8 @@
...
@@ -12,13 +12,8 @@
module
=
QUnit
.
module
,
module
=
QUnit
.
module
,
ATTACHMENT
=
'
data
'
,
ATTACHMENT
=
'
data
'
,
i
,
i
,
<<<<<<<
HEAD
name_list
=
[
'
get
'
,
'
post
'
,
'
put
'
,
'
buildQuery
'
,
=======
name_list
=
[
'
get
'
,
'
post
'
,
'
put
'
,
'
remove
'
,
'
buildQuery
'
,
name_list
=
[
'
get
'
,
'
post
'
,
'
put
'
,
'
remove
'
,
'
buildQuery
'
,
>>>>>>>
7
ed9424
...
Scenario
:
init
officejs
scenario
'
putAttachment
'
,
'
getAttachment
'
,
'
allAttachments
'
];
'
putAttachment
'
,
'
getAttachment
'
,
'
allAttachments
'
];
///////////////////////////////////////////////////////
///////////////////////////////////////////////////////
// Fake Storage
// Fake Storage
///////////////////////////////////////////////////////
///////////////////////////////////////////////////////
...
@@ -154,11 +149,8 @@
...
@@ -154,11 +149,8 @@
check_remote_attachment_creation
:
true
,
check_remote_attachment_creation
:
true
,
check_remote_attachment_deletion
:
true
,
check_remote_attachment_deletion
:
true
,
check_local_deletion
:
false
,
check_local_deletion
:
false
,
<<<<<<<
HEAD
parallel_operation_amount
:
10
,
parallel_operation_amount
:
10
,
parallel_operation_attachment_amount
:
10
,
parallel_operation_attachment_amount
:
10
,
=======
>>>>>>>
7
ed9424
...
Scenario
:
init
officejs
scenario
local_sub_storage
:
{
local_sub_storage
:
{
type
:
"
query
"
,
type
:
"
query
"
,
sub_storage
:
{
sub_storage
:
{
...
...
src/jio.storage/saferepairstorage.js
View file @
ddf61098
/*jslint nomen: true*/
/*jslint indent:2,maxlen:80,nomen:true*/
(
function
(
jIO
)
{
/*global jIO, RSVP*/
(
function
(
jIO
,
RSVP
)
{
"
use strict
"
;
"
use strict
"
;
/**
/**
...
@@ -88,4 +89,4 @@
...
@@ -88,4 +89,4 @@
jIO
.
addStorage
(
'
saferepair
'
,
SafeRepairStorage
);
jIO
.
addStorage
(
'
saferepair
'
,
SafeRepairStorage
);
}(
jIO
));
}(
jIO
,
RSVP
));
test/tests.html
View file @
ddf61098
...
@@ -53,6 +53,11 @@
...
@@ -53,6 +53,11 @@
<script
src=
"jio.storage/zipstorage.tests.js"
></script>
<script
src=
"jio.storage/zipstorage.tests.js"
></script>
<script
src=
"jio.storage/gdrivestorage.tests.js"
></script>
<script
src=
"jio.storage/gdrivestorage.tests.js"
></script>
<script
src=
"jio.storage/websqlstorage.tests.js"
></script>
<script
src=
"jio.storage/websqlstorage.tests.js"
></script>
<script
src=
"../node_modules/renderjs/dist/renderjs-latest.js"
></script>
<script
src=
"../examples/scenario.js"
></script>
<script
src=
"../examples/scenario_officejs.js"
></script>
<!--script src="../lib/jquery/jquery.min.js"></script>
<!--script src="../lib/jquery/jquery.min.js"></script>
<script src="../src/jio.storage/xwikistorage.js"></script>
<script src="../src/jio.storage/xwikistorage.js"></script>
<script src="jio.storage/xwikistorage.tests.js"></script-->
<script src="jio.storage/xwikistorage.tests.js"></script-->
...
...
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