Commit e6275024 authored by Tristan Cavelier's avatar Tristan Cavelier

jsonify blob Firefox != Chromium -> fixed

parent d4a44182
...@@ -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", {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment