Bug 1634718 [wpt PR 23339] - Rename PeriodicBackgroundSync to periodic-background-sync, a=testonly
authorPhilip Jägenstedt <philip@foolip.org>
Wed, 13 May 2020 03:56:40 +0000
changeset 593692 a8072af5720330edfa291d789ddb8aa823afb828
parent 593691 2a86ee8bf5326c9f91eb725518270f418b89f3f9
child 593693 6c2a0a65eb4f6f4182951702bc8c0012428413cb
push id13186
push userffxbld-merge
push dateMon, 01 Jun 2020 09:52:46 +0000
treeherdermozilla-beta@3e7c70a1e4a1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1634718, 23339
milestone78.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1634718 [wpt PR 23339] - Rename PeriodicBackgroundSync to periodic-background-sync, a=testonly Automatic update from web-platform-tests Rename PeriodicBackgroundSync to periodic-background-sync (#23339) To match the spec shortname. Also adds a META.yml with the spec editors as suggested reviewers. -- wpt-commits: 6309e8e5e22c830b56bf8061eed95d1eec0bb2fd wpt-pr: 23339
testing/web-platform/tests/PeriodicBackgroundSync/idlharness.https.any.js
testing/web-platform/tests/PeriodicBackgroundSync/periodicsync.https.window.js
testing/web-platform/tests/PeriodicBackgroundSync/service_workers/sw.js
testing/web-platform/tests/periodic-background-sync/META.yml
testing/web-platform/tests/periodic-background-sync/idlharness.https.any.js
testing/web-platform/tests/periodic-background-sync/periodicsync.https.window.js
testing/web-platform/tests/periodic-background-sync/service_workers/sw.js
deleted file mode 100644
--- a/testing/web-platform/tests/PeriodicBackgroundSync/idlharness.https.any.js
+++ /dev/null
@@ -1,38 +0,0 @@
-// META: script=/resources/WebIDLParser.js
-// META: script=/resources/idlharness.js
-
-'use strict';
-
-// https://github.com/WICG/BackgroundSync/blob/master/spec/PeriodicBackgroundSync-index.html
-
-const idl = `
-partial interface ServiceWorkerGlobalScope {
-    attribute EventHandler onperiodicsync;
-};
-[
-  Exposed=(Window,Worker)
-] partial interface ServiceWorkerRegistration {
-    readonly attribute PeriodicSyncManager periodicSync;
-    readonly attribute SyncManager sync;
-};
-dictionary PeriodicSyncEventInit : ExtendableEventInit {
-    required DOMString tag;
-};
-[
-  Constructor(DOMString type, PeriodicSyncEventInit init),
-  Exposed=ServiceWorker
-] interface PeriodicSyncEvent : ExtendableEvent {
-    readonly attribute DOMString tag;
-};
-`;
-
-test(t => {
-  const idlArray = new IdlArray();
-  idlArray.add_idls(idl);
-  idlArray.add_objects({
-    ServiceWorkerGlobalScope: ['self', 'onperiodicsync'],
-    ServiceWorkerRegistration: ['registration'],
-    PeriodicSyncManager: ['registration.periodicSync'],
-    PeriodicSyncEvent: ['new PeriodicSyncEvent("tag")'],
-  });
-}, 'IDL test for Periodic Background Sync');
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/periodic-background-sync/META.yml
@@ -0,0 +1,4 @@
+spec: https://wicg.github.io/periodic-background-sync/
+suggested_reviewers:
+  - jakearchibald
+  - mugdhalakhani
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/periodic-background-sync/idlharness.https.any.js
@@ -0,0 +1,38 @@
+// META: script=/resources/WebIDLParser.js
+// META: script=/resources/idlharness.js
+
+'use strict';
+
+// https://wicg.github.io/periodic-background-sync/
+
+const idl = `
+partial interface ServiceWorkerGlobalScope {
+    attribute EventHandler onperiodicsync;
+};
+[
+  Exposed=(Window,Worker)
+] partial interface ServiceWorkerRegistration {
+    readonly attribute PeriodicSyncManager periodicSync;
+    readonly attribute SyncManager sync;
+};
+dictionary PeriodicSyncEventInit : ExtendableEventInit {
+    required DOMString tag;
+};
+[
+  Constructor(DOMString type, PeriodicSyncEventInit init),
+  Exposed=ServiceWorker
+] interface PeriodicSyncEvent : ExtendableEvent {
+    readonly attribute DOMString tag;
+};
+`;
+
+test(t => {
+  const idlArray = new IdlArray();
+  idlArray.add_idls(idl);
+  idlArray.add_objects({
+    ServiceWorkerGlobalScope: ['self', 'onperiodicsync'],
+    ServiceWorkerRegistration: ['registration'],
+    PeriodicSyncManager: ['registration.periodicSync'],
+    PeriodicSyncEvent: ['new PeriodicSyncEvent("tag")'],
+  });
+}, 'IDL test for Periodic Background Sync');
rename from testing/web-platform/tests/PeriodicBackgroundSync/periodicsync.https.window.js
rename to testing/web-platform/tests/periodic-background-sync/periodicsync.https.window.js
rename from testing/web-platform/tests/PeriodicBackgroundSync/service_workers/sw.js
rename to testing/web-platform/tests/periodic-background-sync/service_workers/sw.js