author | Philip Jägenstedt <philip@foolip.org> |
Wed, 13 May 2020 03:56:40 +0000 | |
changeset 593692 | a8072af5720330edfa291d789ddb8aa823afb828 |
parent 593691 | 2a86ee8bf5326c9f91eb725518270f418b89f3f9 |
child 593693 | 6c2a0a65eb4f6f4182951702bc8c0012428413cb |
push id | 13186 |
push user | ffxbld-merge |
push date | Mon, 01 Jun 2020 09:52:46 +0000 |
treeherder | mozilla-beta@3e7c70a1e4a1 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | testonly |
bugs | 1634718, 23339 |
milestone | 78.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
|
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');