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
preetwinder
jio
Commits
e40db7a0
Commit
e40db7a0
authored
Jan 07, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some english word corrected
parent
93d52ec9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
test/jiotests.js
test/jiotests.js
+18
-18
No files found.
test/jiotests.js
View file @
e40db7a0
...
@@ -930,13 +930,13 @@ test ("Get", function(){
...
@@ -930,13 +930,13 @@ test ("Get", function(){
"
applicationname
"
:
"
aget
"
"
applicationname
"
:
"
aget
"
});
});
// get
unexista
nt document
// get
inexiste
nt document
o
.
spy
(
o
,
"
status
"
,
404
,
"
Get
unexista
nt document
"
);
o
.
spy
(
o
,
"
status
"
,
404
,
"
Get
inexiste
nt document
"
);
o
.
jio
.
get
(
"
get1
"
,
o
.
f
);
o
.
jio
.
get
(
"
get1
"
,
o
.
f
);
o
.
tick
(
o
);
o
.
tick
(
o
);
// get
unexista
nt attachment
// get
inexiste
nt attachment
o
.
spy
(
o
,
"
status
"
,
404
,
"
Get
unexista
nt attachment
"
);
o
.
spy
(
o
,
"
status
"
,
404
,
"
Get
inexiste
nt attachment
"
);
o
.
jio
.
get
(
"
get1/get2
"
,
o
.
f
);
o
.
jio
.
get
(
"
get1/get2
"
,
o
.
f
);
o
.
tick
(
o
);
o
.
tick
(
o
);
...
@@ -952,8 +952,8 @@ test ("Get", function(){
...
@@ -952,8 +952,8 @@ test ("Get", function(){
o
.
jio
.
get
(
"
get1
"
,
o
.
f
);
o
.
jio
.
get
(
"
get1
"
,
o
.
f
);
o
.
tick
(
o
);
o
.
tick
(
o
);
// get
unexista
nt attachment (document exists)
// get
inexiste
nt attachment (document exists)
o
.
spy
(
o
,
"
status
"
,
404
,
"
Get
unexista
nt attachment (document exists)
"
);
o
.
spy
(
o
,
"
status
"
,
404
,
"
Get
inexiste
nt attachment (document exists)
"
);
o
.
jio
.
get
(
"
get1/get2
"
,
o
.
f
);
o
.
jio
.
get
(
"
get1/get2
"
,
o
.
f
);
o
.
tick
(
o
);
o
.
tick
(
o
);
...
@@ -987,13 +987,13 @@ test ("Remove", function(){
...
@@ -987,13 +987,13 @@ test ("Remove", function(){
"
applicationname
"
:
"
aremove
"
"
applicationname
"
:
"
aremove
"
});
});
// remove
unexista
nt document
// remove
inexiste
nt document
o
.
spy
(
o
,
"
status
"
,
404
,
"
Remove
unexista
nt document
"
);
o
.
spy
(
o
,
"
status
"
,
404
,
"
Remove
inexiste
nt document
"
);
o
.
jio
.
remove
({
"
_id
"
:
"
remove1
"
},
o
.
f
);
o
.
jio
.
remove
({
"
_id
"
:
"
remove1
"
},
o
.
f
);
o
.
tick
(
o
);
o
.
tick
(
o
);
// remove
unexista
nt document/attachment
// remove
inexiste
nt document/attachment
o
.
spy
(
o
,
"
status
"
,
404
,
"
Remove
unexista
nt document/attachment
"
);
o
.
spy
(
o
,
"
status
"
,
404
,
"
Remove
inexiste
nt document/attachment
"
);
o
.
jio
.
remove
({
"
_id
"
:
"
remove1/remove2
"
},
o
.
f
);
o
.
jio
.
remove
({
"
_id
"
:
"
remove1/remove2
"
},
o
.
f
);
o
.
tick
(
o
);
o
.
tick
(
o
);
...
@@ -1204,13 +1204,13 @@ test ("Get", function(){
...
@@ -1204,13 +1204,13 @@ test ("Get", function(){
});
});
o
.
localpath
=
"
jio/localstorage/urevget/arevget
"
;
o
.
localpath
=
"
jio/localstorage/urevget/arevget
"
;
// get
unexista
nt document
// get
inexiste
nt document
o
.
spy
(
o
,
"
status
"
,
404
,
"
Get
unexista
nt document (winner)
"
);
o
.
spy
(
o
,
"
status
"
,
404
,
"
Get
inexiste
nt document (winner)
"
);
o
.
jio
.
get
(
"
get1
"
,
o
.
f
);
o
.
jio
.
get
(
"
get1
"
,
o
.
f
);
o
.
tick
(
o
);
o
.
tick
(
o
);
// get
unexista
nt attachment
// get
inexiste
nt attachment
o
.
spy
(
o
,
"
status
"
,
404
,
"
Get
unexista
nt attachment (winner)
"
);
o
.
spy
(
o
,
"
status
"
,
404
,
"
Get
inexiste
nt attachment (winner)
"
);
o
.
jio
.
get
(
"
get1/get2
"
,
o
.
f
);
o
.
jio
.
get
(
"
get1/get2
"
,
o
.
f
);
o
.
tick
(
o
);
o
.
tick
(
o
);
...
@@ -1264,8 +1264,8 @@ test ("Get", function(){
...
@@ -1264,8 +1264,8 @@ test ("Get", function(){
o
.
f
);
o
.
f
);
o
.
tick
(
o
);
o
.
tick
(
o
);
// get
unexista
nt specific document
// get
inexiste
nt specific document
o
.
spy
(
o
,
"
status
"
,
404
,
"
Get document (
unexista
nt specific revision)
"
);
o
.
spy
(
o
,
"
status
"
,
404
,
"
Get document (
inexiste
nt specific revision)
"
);
o
.
jio
.
get
(
"
get1
"
,
{
o
.
jio
.
get
(
"
get1
"
,
{
"
revs_info
"
:
true
,
"
revs
"
:
true
,
"
conflicts
"
:
true
,
"
revs_info
"
:
true
,
"
revs
"
:
true
,
"
conflicts
"
:
true
,
"
rev
"
:
"
1-rev0
"
"
rev
"
:
"
1-rev0
"
...
@@ -1303,8 +1303,8 @@ test ("Get", function(){
...
@@ -1303,8 +1303,8 @@ test ("Get", function(){
o
.
jio
.
get
(
"
get1/get2
"
,
o
.
f
);
o
.
jio
.
get
(
"
get1/get2
"
,
o
.
f
);
o
.
tick
(
o
);
o
.
tick
(
o
);
// get
unexista
nt attachment specific rev
// get
inexiste
nt attachment specific rev
o
.
spy
(
o
,
"
status
"
,
404
,
"
Get
unexista
nt attachment (specific revision)
"
);
o
.
spy
(
o
,
"
status
"
,
404
,
"
Get
inexiste
nt attachment (specific revision)
"
);
o
.
jio
.
get
(
"
get1/get2
"
,
{
o
.
jio
.
get
(
"
get1/get2
"
,
{
"
revs_info
"
:
true
,
"
revs
"
:
true
,
"
conflicts
"
:
true
,
"
revs_info
"
:
true
,
"
revs
"
:
true
,
"
conflicts
"
:
true
,
"
rev
"
:
"
1-rev1
"
"
rev
"
:
"
1-rev1
"
...
...
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