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
211d8ec4
Commit
211d8ec4
authored
Jul 20, 2017
by
Romain Courteaud
Committed by
Vincent Bechu
Oct 06, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip officejs scenario
parent
450d319e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
7 deletions
+19
-7
examples/scenario_officejs.html
examples/scenario_officejs.html
+1
-0
examples/scenario_officejs.js
examples/scenario_officejs.js
+18
-7
No files found.
examples/scenario_officejs.html
View file @
211d8ec4
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
<script
src=
"../node_modules/rsvp/dist/rsvp-2.0.4.js"
></script>
<script
src=
"../node_modules/rsvp/dist/rsvp-2.0.4.js"
></script>
<script
src=
"../dist/jio-latest.js"
></script>
<script
src=
"../dist/jio-latest.js"
></script>
<script
src=
"../src/jio.storage/saferepairstorage.js"
></script>
<link
rel=
"stylesheet"
href=
"../node_modules/grunt-contrib-qunit/test/libs/qunit.css"
type=
"text/css"
media=
"screen"
/>
<link
rel=
"stylesheet"
href=
"../node_modules/grunt-contrib-qunit/test/libs/qunit.css"
type=
"text/css"
media=
"screen"
/>
<script
src=
"../node_modules/grunt-contrib-qunit/test/libs/qunit.js"
type=
"text/javascript"
></script>
<script
src=
"../node_modules/grunt-contrib-qunit/test/libs/qunit.js"
type=
"text/javascript"
></script>
...
...
examples/scenario_officejs.js
View file @
211d8ec4
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
module
=
QUnit
.
module
,
module
=
QUnit
.
module
,
ATTACHMENT
=
'
data
'
,
ATTACHMENT
=
'
data
'
,
i
,
i
,
name_list
=
[
'
get
'
,
'
post
'
,
'
put
'
,
'
remove
'
,
'
buildQuery
'
,
name_list
=
[
'
get
'
,
'
post
'
,
'
put
'
,
'
buildQuery
'
,
'
putAttachment
'
,
'
getAttachment
'
,
'
allAttachments
'
];
'
putAttachment
'
,
'
getAttachment
'
,
'
allAttachments
'
];
///////////////////////////////////////////////////////
///////////////////////////////////////////////////////
...
@@ -150,6 +150,8 @@
...
@@ -150,6 +150,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
,
parallel_operation_amount
:
10
,
parallel_operation_attachment_amount
:
10
,
local_sub_storage
:
{
local_sub_storage
:
{
type
:
"
query
"
,
type
:
"
query
"
,
sub_storage
:
{
sub_storage
:
{
...
@@ -166,8 +168,11 @@
...
@@ -166,8 +168,11 @@
}
}
},
},
remote_sub_storage
:
{
remote_sub_storage
:
{
type
:
"
mock
"
,
type
:
"
saferepair
"
,
options
:
this
.
remote_mock_options
sub_storage
:
{
type
:
"
mock
"
,
options
:
this
.
remote_mock_options
}
}
}
});
});
}
}
...
@@ -513,11 +518,17 @@
...
@@ -513,11 +518,17 @@
return
putFullDoc
(
test
.
jio
,
doc_id
,
doc2
,
blob2
);
return
putFullDoc
(
test
.
jio
,
doc_id
,
doc2
,
blob2
);
})
})
.
then
(
function
()
{
.
then
(
function
()
{
test
.
remote_mock_options
.
mock
.
put
=
function
()
{
test
.
remote_mock_options
.
mock
.
put
=
function
(
id
)
{
throw
new
Error
(
'
put not allowed
'
);
if
(
id
===
doc_id
)
{
throw
new
jIO
.
util
.
jIOError
(
'
put not allowed
'
,
403
);
}
return
id
;
};
};
test
.
remote_mock_options
.
mock
.
putAttachment
=
function
()
{
test
.
remote_mock_options
.
mock
.
putAttachment
=
function
(
id
)
{
throw
new
Error
(
'
putattachment not allowed
'
);
if
(
id
===
doc_id
)
{
throw
new
jIO
.
util
.
jIOError
(
'
putattachment not allowed
'
,
403
);
}
return
id
;
};
};
resetCount
(
test
.
remote_mock_options
.
count
);
resetCount
(
test
.
remote_mock_options
.
count
);
return
test
.
jio
.
repair
();
return
test
.
jio
.
repair
();
...
...
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