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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
jio
Commits
154f0305
Commit
154f0305
authored
Aug 14, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replicatestorage tests added
parent
2c40da15
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
0 deletions
+51
-0
test/jio.storage/replicatestorage.tests.js
test/jio.storage/replicatestorage.tests.js
+45
-0
test/jiotests_withoutrequirejs.html
test/jiotests_withoutrequirejs.html
+3
-0
test/tests.require.js
test/tests.require.js
+3
-0
No files found.
test/jio.storage/replicatestorage.tests.js
0 → 100644
View file @
154f0305
/*jslint indent: 2, maxlen: 80, nomen: true */
/*global define, jIO, jio_tests, test, ok, deepEqual, sinon, expect */
// define([module_name], [dependencies], module);
(
function
(
dependencies
,
module
)
{
"
use strict
"
;
if
(
typeof
define
===
'
function
'
&&
define
.
amd
)
{
return
define
(
dependencies
,
module
);
}
module
(
jIO
,
jio_tests
);
}([
'
jio
'
,
'
jio_tests
'
,
'
localstorage
'
,
'
replicatestorage
'
],
function
(
jIO
,
util
)
{
"
use strict
"
;
module
(
"
ReplicateStorage
"
);
test
(
"
Substorage management
"
,
function
()
{
expect
(
1
);
var
clock
=
sinon
.
useFakeTimers
(),
jio
=
jIO
.
newJio
({
"
type
"
:
"
replicate
"
,
"
storage_list
"
:
[{
"
type
"
:
"
dummy
"
},
{
"
type
"
:
"
dummy
"
,
"
mode
"
:
"
always fail
"
,
}]
});
// post without id
jio
.
post
({},
function
(
err
,
response
)
{
deepEqual
(
err
||
response
,
{
"
id
"
:
"
document id a
"
,
"
ok
"
:
true
},
"
2 Storages DONE + FAIL = DONE
"
);
});
clock
.
tick
(
10000
);
util
.
closeAndcleanUpJio
(
jio
);
});
}));
test/jiotests_withoutrequirejs.html
View file @
154f0305
...
@@ -21,6 +21,9 @@
...
@@ -21,6 +21,9 @@
<script
src=
"../src/jio.storage/localstorage.js"
></script>
<script
src=
"../src/jio.storage/localstorage.js"
></script>
<script
src=
"./jio.storage/localstorage.tests.js"
></script>
<script
src=
"./jio.storage/localstorage.tests.js"
></script>
<script
src=
"../src/jio.storage/replicatestorage.js"
></script>
<script
src=
"./jio.storage/replicatestorage.tests.js"
></script>
<script
src=
"../src/sha256.amd.js"
></script>
<script
src=
"../src/sha256.amd.js"
></script>
<script
src=
"../src/jio.storage/revisionstorage.js"
></script>
<script
src=
"../src/jio.storage/revisionstorage.js"
></script>
<script
src=
"./jio.storage/revisionstorage.tests.js"
></script>
<script
src=
"./jio.storage/revisionstorage.tests.js"
></script>
...
...
test/tests.require.js
View file @
154f0305
...
@@ -16,6 +16,8 @@
...
@@ -16,6 +16,8 @@
"
jio_tests
"
:
"
jio/tests
"
,
"
jio_tests
"
:
"
jio/tests
"
,
"
localstorage
"
:
"
../src/jio.storage/localstorage
"
,
"
localstorage
"
:
"
../src/jio.storage/localstorage
"
,
"
localstorage_tests
"
:
"
jio.storage/localstorage.tests
"
,
"
localstorage_tests
"
:
"
jio.storage/localstorage.tests
"
,
"
replicatestorage
"
:
"
../src/jio.storage/replicatestorage
"
,
"
replicatestorage_tests
"
:
"
jio.storage/replicatestorage.tests
"
,
"
revisionstorage
"
:
"
../src/jio.storage/revisionstorage
"
,
"
revisionstorage
"
:
"
../src/jio.storage/revisionstorage
"
,
"
revisionstorage_tests
"
:
"
jio.storage/revisionstorage.tests
"
,
"
revisionstorage_tests
"
:
"
jio.storage/revisionstorage.tests
"
,
"
replicaterevisionstorage
"
:
"
../src/jio.storage/replicaterevisionstorage
"
,
"
replicaterevisionstorage
"
:
"
../src/jio.storage/replicaterevisionstorage
"
,
...
@@ -51,6 +53,7 @@
...
@@ -51,6 +53,7 @@
"
complex_queries_tests
"
,
"
complex_queries_tests
"
,
"
jio_tests
"
,
"
jio_tests
"
,
"
localstorage_tests
"
,
"
localstorage_tests
"
,
"
replicatestorage_tests
"
,
"
revisionstorage_tests
"
,
"
revisionstorage_tests
"
,
"
replicaterevisionstorage_tests
"
,
"
replicaterevisionstorage_tests
"
,
"
indexstorage_tests
"
,
"
indexstorage_tests
"
,
...
...
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