Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
18
Merge Requests
18
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
jio
Commits
24b3f363
Commit
24b3f363
authored
Aug 27, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jsonify blob Firefox != Chromium -> fixed
parent
a18fda75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test/jio/tests.js
test/jio/tests.js
+3
-3
No files found.
test/jio/tests.js
View file @
24b3f363
...
@@ -481,17 +481,17 @@
...
@@ -481,17 +481,17 @@
// Tests getAttachment command string response
// Tests getAttachment command string response
jio
.
getAttachment
({
"
_id
"
:
"
a
"
,
"
_attachment
"
:
"
b
"
}).
jio
.
getAttachment
({
"
_id
"
:
"
a
"
,
"
_attachment
"
:
"
b
"
}).
always
(
function
(
answer
)
{
always
(
function
(
answer
)
{
ok
(
answer
.
data
instanceof
Blob
,
"
Get Attachment Command: Blob should be returned
"
);
delete
answer
.
data
;
deepEqual
(
JSON
.
parse
(
JSON
.
stringify
(
answer
)),
{
deepEqual
(
JSON
.
parse
(
JSON
.
stringify
(
answer
)),
{
"
attachment
"
:
"
b
"
,
"
attachment
"
:
"
b
"
,
"
data
"
:
{},
"
id
"
:
"
a
"
,
"
id
"
:
"
a
"
,
"
method
"
:
"
getAttachment
"
,
"
method
"
:
"
getAttachment
"
,
"
result
"
:
"
success
"
,
"
result
"
:
"
success
"
,
"
status
"
:
200
,
"
status
"
:
200
,
"
statusText
"
:
"
Ok
"
"
statusText
"
:
"
Ok
"
});
});
ok
(
answer
.
data
instanceof
Blob
,
"
Get Attachment Command: Blob should be returned
"
);
});
});
clock
.
tick
(
1
);
clock
.
tick
(
1
);
fakestorage
[
'
Valid Resp/getAttachment
'
].
success
(
"
ok
"
,
{
fakestorage
[
'
Valid Resp/getAttachment
'
].
success
(
"
ok
"
,
{
...
...
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