提交 88ed5354 编写于 作者: E Emily Eisenberg

Make tests work when there is no Blob support

上级 1e4a6151
......@@ -316,7 +316,7 @@ suite('Request', function() {
assert.equal(req.headers.get('content-type'), 'text/plain;charset=UTF-8')
})
test('construct with Blob body and type sets Content-Type header', function() {
;(Request.prototype.blob ? test : test.skip)('construct with Blob body and type sets Content-Type header', function() {
var req = new Request('https://fetch.spec.whatwg.org/', {
method: 'post',
body: new Blob(['test'], { type: 'text/plain' }),
......@@ -515,7 +515,7 @@ suite('Response', function() {
assert.equal(r.headers.get('content-type'), 'text/plain;charset=UTF-8')
})
test('construct with Blob body and type sets Content-Type header', function() {
;(Response.prototype.blob ? test : test.skip)('construct with Blob body and type sets Content-Type header', function() {
var r = new Response(new Blob(['test'], { type: 'text/plain' }))
assert.equal(r.headers.get('content-type'), 'text/plain')
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册