| Index: third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-put.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-put.js b/third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-put.js
|
| index 4d045c45366ae76d943d52c9d241d30a797427b3..b452e453440253278fddd575312953683009ef80 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-put.js
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-put.js
|
| @@ -302,4 +302,22 @@ cache_test(function(cache) {
|
| });
|
| }, 'getReader() after Cache.put');
|
|
|
| +cache_test(function(cache) {
|
| + return assert_promise_rejects(
|
| + cache.put(new Request(test_url),
|
| + new Response(test_body, { headers: { VARY: '*' }})),
|
| + new TypeError(),
|
| + 'Cache.put should reject VARY:* Responses with a TypeError.');
|
| + }, 'Cache.put with a VARY:* Response');
|
| +
|
| +cache_test(function(cache) {
|
| + return assert_promise_rejects(
|
| + cache.put(new Request(test_url),
|
| + new Response(test_body,
|
| + { headers: { VARY: 'Accept-Language,*' }})),
|
| + new TypeError(),
|
| + 'Cache.put should reject Responses with an embedded VARY:* with a ' +
|
| + 'TypeError.');
|
| + }, 'Cache.put with an embedded VARY:* Response');
|
| +
|
| done();
|
|
|