提交 affb781d 编写于 作者: D David Graham

Test blob promise.

上级 df0f9bb5
......@@ -51,3 +51,13 @@ asyncTest('handles json parse error', 2, function() {
start()
})
})
asyncTest('resolves blob promise', 2, function() {
fetch('/hello').then(function(response) {
return response.blob()
}).then(function(blob) {
ok(blob instanceof Blob, 'blob is a Blob instance')
equal(blob.size, 2)
start()
})
})
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册