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
Junming
jio
Commits
67911e51
Commit
67911e51
authored
Jun 10, 2014
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove digest test
parent
9853d53e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
test/jio.storage/indexeddbstorage.tests.js
test/jio.storage/indexeddbstorage.tests.js
+0
-18
No files found.
test/jio.storage/indexeddbstorage.tests.js
View file @
67911e51
...
@@ -291,8 +291,6 @@
...
@@ -291,8 +291,6 @@
function
createAttachmentTest
(
answer
)
{
function
createAttachmentTest
(
answer
)
{
deepEqual
(
answer
,
{
deepEqual
(
answer
,
{
"
attachment
"
:
"
aa
"
,
"
attachment
"
:
"
aa
"
,
"
digest
"
:
"
sha256-9834876dcfb05cb167a5c24953eba58c4
"
+
"
ac89b1adf57f28f2f9d09af107ee8f0
"
,
"
id
"
:
"
a
"
,
"
id
"
:
"
a
"
,
"
method
"
:
"
putAttachment
"
,
"
method
"
:
"
putAttachment
"
,
"
result
"
:
"
success
"
,
"
result
"
:
"
success
"
,
...
@@ -313,8 +311,6 @@
...
@@ -313,8 +311,6 @@
function
updateAttachmentTest
(
answer
)
{
function
updateAttachmentTest
(
answer
)
{
deepEqual
(
answer
,
{
deepEqual
(
answer
,
{
"
attachment
"
:
"
aa
"
,
"
attachment
"
:
"
aa
"
,
"
digest
"
:
"
sha256-38760eabb666e8e61ee628a17c4090cc5
"
+
"
0728e095ff24218119d51bd22475363
"
,
"
id
"
:
"
a
"
,
"
id
"
:
"
a
"
,
"
method
"
:
"
putAttachment
"
,
"
method
"
:
"
putAttachment
"
,
"
result
"
:
"
success
"
,
"
result
"
:
"
success
"
,
...
@@ -335,8 +331,6 @@
...
@@ -335,8 +331,6 @@
function
createAnotherAttachmentTest
(
answer
)
{
function
createAnotherAttachmentTest
(
answer
)
{
deepEqual
(
answer
,
{
deepEqual
(
answer
,
{
"
attachment
"
:
"
ab
"
,
"
attachment
"
:
"
ab
"
,
"
digest
"
:
"
sha256-e124adcce1fb2f88e1ea799c3d0820845
"
+
"
ed343e6c739e54131fcb3a56e4bc1bd
"
,
"
id
"
:
"
a
"
,
"
id
"
:
"
a
"
,
"
method
"
:
"
putAttachment
"
,
"
method
"
:
"
putAttachment
"
,
"
result
"
:
"
success
"
,
"
result
"
:
"
success
"
,
...
@@ -370,12 +364,9 @@
...
@@ -370,12 +364,9 @@
return
jIO
.
util
.
readBlobAsText
(
blob
).
then
(
function
(
e
)
{
return
jIO
.
util
.
readBlobAsText
(
blob
).
then
(
function
(
e
)
{
deepEqual
(
blob
.
type
,
"
text/plain
"
,
"
Check blob type
"
);
deepEqual
(
blob
.
type
,
"
text/plain
"
,
"
Check blob type
"
);
deepEqual
(
e
.
target
.
result
,
"
aab
"
,
"
Check blob text content
"
);
deepEqual
(
e
.
target
.
result
,
"
aab
"
,
"
Check blob text content
"
);
answer
.
digest
=
jIO
.
util
.
makeBinaryStringDigest
(
e
.
target
.
result
);
deepEqual
(
answer
,
{
deepEqual
(
answer
,
{
"
attachment
"
:
"
aa
"
,
"
attachment
"
:
"
aa
"
,
"
data
"
:
"
<blob>
"
,
"
data
"
:
"
<blob>
"
,
"
digest
"
:
"
sha256-38760eabb666e8e61ee628a17c4090cc5
"
+
"
0728e095ff24218119d51bd22475363
"
,
"
id
"
:
"
a
"
,
"
id
"
:
"
a
"
,
"
method
"
:
"
getAttachment
"
,
"
method
"
:
"
getAttachment
"
,
"
result
"
:
"
success
"
,
"
result
"
:
"
success
"
,
...
@@ -399,12 +390,9 @@
...
@@ -399,12 +390,9 @@
return
jIO
.
util
.
readBlobAsText
(
blob
).
then
(
function
(
e
)
{
return
jIO
.
util
.
readBlobAsText
(
blob
).
then
(
function
(
e
)
{
deepEqual
(
blob
.
type
,
"
text/plain
"
,
"
Check blob type
"
);
deepEqual
(
blob
.
type
,
"
text/plain
"
,
"
Check blob type
"
);
deepEqual
(
e
.
target
.
result
,
"
aba
"
,
"
Check blob text content
"
);
deepEqual
(
e
.
target
.
result
,
"
aba
"
,
"
Check blob text content
"
);
answer
.
digest
=
jIO
.
util
.
makeBinaryStringDigest
(
e
.
target
.
result
);
deepEqual
(
answer
,
{
deepEqual
(
answer
,
{
"
attachment
"
:
"
ab
"
,
"
attachment
"
:
"
ab
"
,
"
data
"
:
"
<blob>
"
,
"
data
"
:
"
<blob>
"
,
"
digest
"
:
"
sha256-e124adcce1fb2f88e1ea799c3d0820845
"
+
"
ed343e6c739e54131fcb3a56e4bc1bd
"
,
"
id
"
:
"
a
"
,
"
id
"
:
"
a
"
,
"
method
"
:
"
getAttachment
"
,
"
method
"
:
"
getAttachment
"
,
"
result
"
:
"
success
"
,
"
result
"
:
"
success
"
,
...
@@ -428,14 +416,10 @@
...
@@ -428,14 +416,10 @@
"
_attachment
"
:
{
"
_attachment
"
:
{
"
aa
"
:
{
"
aa
"
:
{
"
content_type
"
:
"
text/plain
"
,
"
content_type
"
:
"
text/plain
"
,
"
digest
"
:
"
sha256-38760eabb666e8e61ee628a17c4090cc5
"
+
"
0728e095ff24218119d51bd22475363
"
,
"
length
"
:
3
"
length
"
:
3
},
},
"
ab
"
:
{
"
ab
"
:
{
"
content_type
"
:
"
text/plain
"
,
"
content_type
"
:
"
text/plain
"
,
"
digest
"
:
"
sha256-e124adcce1fb2f88e1ea799c3d0820845
"
+
"
ed343e6c739e54131fcb3a56e4bc1bd
"
,
"
length
"
:
3
"
length
"
:
3
}
}
}
}
...
@@ -491,8 +475,6 @@
...
@@ -491,8 +475,6 @@
"
_attachment
"
:
{
"
_attachment
"
:
{
"
aa
"
:
{
"
aa
"
:
{
"
content_type
"
:
"
text/plain
"
,
"
content_type
"
:
"
text/plain
"
,
"
digest
"
:
"
sha256-38760eabb666e8e61ee628a17c4090cc5
"
+
"
0728e095ff24218119d51bd22475363
"
,
"
length
"
:
3
"
length
"
:
3
}
}
},
},
...
...
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