| Index: third_party/WebKit/LayoutTests/http/tests/cachestorage/resources/test-helpers.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/cachestorage/resources/test-helpers.js b/third_party/WebKit/LayoutTests/http/tests/cachestorage/resources/test-helpers.js
|
| index a73889773d20e9cb91a042febe6bebaeb59d7bf5..61ddd123a350e4d8491153c05fbd6164a30bde5a 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/cachestorage/resources/test-helpers.js
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/cachestorage/resources/test-helpers.js
|
| @@ -292,3 +292,11 @@ function assert_request_in_array(actual, expected_array, description) {
|
| }
|
| }), description);
|
| }
|
| +
|
| +// Deletes all caches, returning a promise indicating success.
|
| +function delete_all_caches() {
|
| + return self.caches.keys()
|
| + .then(function(keys) {
|
| + return Promise.all(keys.map(self.caches.delete.bind(self.caches)));
|
| + });
|
| +}
|
|
|