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
Douglas
jio
Commits
d67f9ebd
Commit
d67f9ebd
authored
Jan 23, 2013
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indexStorage: GET new API and qunit
parent
bd61250f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
9 deletions
+19
-9
test/jiotests.js
test/jiotests.js
+19
-9
No files found.
test/jiotests.js
View file @
d67f9ebd
...
@@ -2911,16 +2911,26 @@ test ("PutAttachment", function(){
...
@@ -2911,16 +2911,26 @@ test ("PutAttachment", function(){
o
.
jio
.
stop
();
o
.
jio
.
stop
();
});
});
/*
test
(
"
Get
"
,
function
(){
test
(
"
Get
"
,
function
(){
// not sure these need to be run, because the index does not change
// and only small modifications have been made to handle putAttachment
// tests are from localStorage putAttachment
var
o
=
generateTools
(
this
);
var
o
=
generateTools
(
this
);
o
.
jio
=
JIO
.
newJio
({
o
.
jio
=
JIO
.
newJio
({
"type": "local",
"
type
"
:
"
indexed
"
,
"username": "uget",
"
indices
"
:
[
"application_name": "aget"
{
"
name
"
:
"
indexA
"
,
"
fields
"
:[
"
author
"
]},
});
{
"
name
"
:
"
indexAB
"
,
"
fields
"
:[
"
author
"
,
"
year
"
]}
],
"
sub_storage
"
:
{
"
type
"
:
"
local
"
,
"
username
"
:
"
iget
"
,
"
application_name
"
:
"
iget
"
}
});
// get inexistent document
// get inexistent document
o
.
spy
(
o
,
"
status
"
,
404
,
"
Get inexistent document
"
);
o
.
spy
(
o
,
"
status
"
,
404
,
"
Get inexistent document
"
);
...
@@ -2937,7 +2947,7 @@ test ("Get", function(){
...
@@ -2937,7 +2947,7 @@ test ("Get", function(){
"
_id
"
:
"
get1
"
,
"
_id
"
:
"
get1
"
,
"
title
"
:
"
myGet1
"
"
title
"
:
"
myGet1
"
};
};
localstorage.setItem("jio/localstorage/
uget/a
get/get1", o.doc_get1);
localstorage
.
setItem
(
"
jio/localstorage/
iget/i
get/get1
"
,
o
.
doc_get1
);
// get document
// get document
o
.
spy
(
o
,
"
value
"
,
o
.
doc_get1
,
"
Get document
"
);
o
.
spy
(
o
,
"
value
"
,
o
.
doc_get1
,
"
Get document
"
);
...
@@ -2957,8 +2967,8 @@ test ("Get", function(){
...
@@ -2957,8 +2967,8 @@ test ("Get", function(){
"
digest
"
:
"
md5-5f02f0889301fd7be1ac972c11bf3e7d
"
"
digest
"
:
"
md5-5f02f0889301fd7be1ac972c11bf3e7d
"
}
}
};
};
localstorage.setItem("jio/localstorage/
uget/a
get/get1", o.doc_get1);
localstorage
.
setItem
(
"
jio/localstorage/
iget/i
get/get1
"
,
o
.
doc_get1
);
localstorage.setItem("jio/localstorage/
uget/a
get/get1/get2", "de");
localstorage
.
setItem
(
"
jio/localstorage/
iget/i
get/get1/get2
"
,
"
de
"
);
// get attachment
// get attachment
o
.
spy
(
o
,
"
value
"
,
"
de
"
,
"
Get attachment
"
);
o
.
spy
(
o
,
"
value
"
,
"
de
"
,
"
Get attachment
"
);
...
@@ -2967,7 +2977,7 @@ test ("Get", function(){
...
@@ -2967,7 +2977,7 @@ test ("Get", function(){
o
.
jio
.
stop
();
o
.
jio
.
stop
();
});
});
*/
/*
/*
test ('Get document list', function () {
test ('Get document list', function () {
...
...
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