Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/http/tests/fetch/chromium/mime-sniffing.html |
| diff --git a/third_party/WebKit/LayoutTests/http/tests/fetch/chromium/mime-sniffing.html b/third_party/WebKit/LayoutTests/http/tests/fetch/chromium/mime-sniffing.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4e48533fc606fc2237d53b1f72753f9fdd11694d |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/http/tests/fetch/chromium/mime-sniffing.html |
| @@ -0,0 +1,13 @@ |
| +<!doctype html> |
| +<script src = "/resources/testharness.js"></script> |
| +<script src = "/resources/testharnessreport.js"></script> |
| +<script> |
| +promise_test(() => { |
| + return fetch('/fetch/chromium/resources/mime-sniffing.php').then(res => { |
| + return res.blob(); |
| + }).then(blob => { |
| + assert_equals(blob.type, 'unknown/unknown'); |
| + }); |
| + }); |
| +</script> |
| +<p>This test checks that the mime sniffing is not applied to fetches.</p> |
|
tyoshino (SeeGerritForStatus)
2016/09/08 06:04:31
pass this to promise_test?
yhirano
2016/09/08 06:08:39
Done.
|