Index: LayoutTests/http/tests/fetch/script-tests/response.js |
diff --git a/LayoutTests/http/tests/fetch/script-tests/response.js b/LayoutTests/http/tests/fetch/script-tests/response.js |
index 46dde766908b3a85a8c2428812c88695792c76b0..f1263939dd692b8b14f70dad3784c168ed18bc6a 100644 |
--- a/LayoutTests/http/tests/fetch/script-tests/response.js |
+++ b/LayoutTests/http/tests/fetch/script-tests/response.js |
@@ -308,10 +308,16 @@ promise_test(function(t) { |
}, 'MIME type for Blob'); |
promise_test(function(t) { |
- var res = new Response(new Blob([''], {type: 'Text/Plain'})); |
+ var res = new Response(new Blob(['hello'], {type: 'Text/Plain'})); |
return res.blob() |
.then(function(blob) { |
assert_equals(blob.type, 'text/plain'); |
+ assert_equals(blob.size, 5); |
+ assert_equals(res.headers.get('Content-Type'), 'text/plain'); |
+ return res.blob(); |
+ }).then(function(blob) { |
hiroshige
2015/04/21 07:17:13
Please add a comment that states what we are testi
yhirano
2015/04/22 02:35:30
Done.
|
+ assert_equals(blob.type, 'text/plain'); |
+ assert_equals(blob.size, 0); |
assert_equals(res.headers.get('Content-Type'), 'text/plain'); |
}); |
}, 'MIME type for Blob with non-empty type'); |