Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(515)

Unified Diff: LayoutTests/http/tests/serviceworker/resources/cache-delete-worker.js

Issue 435453002: [ServiceWorker] Update formatting for tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/serviceworker/resources/cache-delete-worker.js
diff --git a/LayoutTests/http/tests/serviceworker/resources/cache-delete-worker.js b/LayoutTests/http/tests/serviceworker/resources/cache-delete-worker.js
index b448978992412645db5cacc4f5d8f47c3cf70e4c..4df8aa18bd7ebd98f22d135274efd99300558225 100644
--- a/LayoutTests/http/tests/serviceworker/resources/cache-delete-worker.js
+++ b/LayoutTests/http/tests/serviceworker/resources/cache-delete-worker.js
@@ -127,16 +127,17 @@ prepopulated_cache_test(function(cache) {
'was successfully deleted.');
})
.then(function() {
- return Promise.all([].concat(
- // The entries 'a' and 'a_with_query' should have been deleted.
- ['a', 'a_with_query'].map(function(k) {
- return assert_promise_rejects(
- cache.match(cache_entries[k].request.url),
- 'NotFoundError',
- 'Cache.delete should respect "prefixMatch" option.');
- }),
- // The entry 'b' should still be in the cache.
- cache.match(cache_entries.b.request.url)
+ return Promise.all(
+ [].concat(
+ // The entries 'a' and 'a_with_query' should have been deleted.
+ ['a', 'a_with_query'].map(function(k) {
+ return assert_promise_rejects(
+ cache.match(cache_entries[k].request.url),
+ 'NotFoundError',
+ 'Cache.delete should respect "prefixMatch" option.');
+ }),
+ // The entry 'b' should still be in the cache.
+ cache.match(cache_entries.b.request.url)
.catch(function() {
assert_unreached('Cache.delete should respect ' +
'"prefixMatch" option.');

Powered by Google App Engine
This is Rietveld 408576698