| Index: third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/fetch.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/fetch.js b/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/fetch.js
|
| index 07e5306eb5ecb75ed038d0dde3ca252877e306c0..9f21bbea19043875c96caef71d36c086d86a7ffe 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/fetch.js
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/fetch/script-tests/fetch.js
|
| @@ -37,6 +37,25 @@ promise_test(function(t) {
|
| }, 'fetch data: URL');
|
|
|
| promise_test(function(t) {
|
| + return fetch('data:,Foobar',
|
| + {
|
| + method: 'POST',
|
| + body: 'Test'
|
| + })
|
| + .then(function(response) {
|
| + assert_equals(response.status, 200);
|
| + assert_equals(response.statusText, 'OK');
|
| + assert_equals(response.headers.get('Content-Type'),
|
| + 'text/plain;charset=US-ASCII');
|
| + assert_equals(size(response.headers), 1);
|
| + return response.text();
|
| + })
|
| + .then(function(text) {
|
| + assert_equals(text, 'Foobar');
|
| + });
|
| + }, 'fetch data: URL with the POST method');
|
| +
|
| +promise_test(function(t) {
|
| return fetch('data:text/html;charset=utf-8;base64,5paH5a2X')
|
| .then(function(response) {
|
| assert_equals(response.status, 200);
|
|
|