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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/background_sync/resources/test-helpers.js

Issue 1437883002: [Background Sync] Align exposed API with spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src@remove-periodic
Patch Set: Rebase Created 5 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: third_party/WebKit/LayoutTests/http/tests/background_sync/resources/test-helpers.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/background_sync/resources/test-helpers.js b/third_party/WebKit/LayoutTests/http/tests/background_sync/resources/test-helpers.js
deleted file mode 100644
index da0b7e9fd4499c4cbd2a30096e0382b311efb1af..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/background_sync/resources/test-helpers.js
+++ /dev/null
@@ -1,13 +0,0 @@
-// Returns a promise which resolves when all registrations have been cleared
-// from the given background sync manager.
-function clear_registered_syncs(sync_manager) {
- return sync_manager.getRegistrations().then(function(registrations) {
- return Promise.all(
- registrations.map(registration => registration.unregister()));
- });
-}
-
-// Clears all background sync registrations from the sync manager.
-function clear_all_syncs(serviceworker_registration) {
- return clear_registered_syncs(serviceworker_registration.sync);
-}

Powered by Google App Engine
This is Rietveld 408576698