| Index: third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-storage-match.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-storage-match.js b/third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-storage-match.js
|
| index c42d1147c40136bc34469ff8b960c66d9c1bbb7d..2dfe8727a37fed8b5a4c55d835e5291fb3e087fc 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-storage-match.js
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/cachestorage/script-tests/cache-storage-match.js
|
| @@ -111,8 +111,11 @@ promise_test(function(test) {
|
| return self.caches.match(transaction.request, {cacheName: 'foo'});
|
| })
|
| .then(function(response) {
|
| - assert_equals(response, undefined,
|
| - 'The response should not be found.');
|
| + assert_unreached('The match with bad cache name should reject.');
|
| + })
|
| + .catch(function(err) {
|
| + assert_equals(err.name, 'NotFoundError',
|
| + 'The match should reject with NotFoundError.');
|
| return self.caches.has('foo');
|
| })
|
| .then(function(has_foo) {
|
|
|