mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision 89aa3f42131cce5a77268ddaeb2fab8a2e29c2a6
This commit is contained in:
parent
39963266ae
commit
ea00d34098
392 changed files with 5974 additions and 7614 deletions
|
@ -9,6 +9,16 @@ idl_test(
|
|||
['BackgroundSync'],
|
||||
['service-workers', 'html', 'dom'],
|
||||
idlArray => {
|
||||
// TODO: Objects
|
||||
const isServiceWorker = location.pathname.includes('.serviceworker.');
|
||||
if (isServiceWorker) {
|
||||
idl_array.add_objects({
|
||||
ServiceWorkerGlobalScope: ['self', 'onsync', 'onperiodicsync'],
|
||||
ServiceWorkerRegistration: ['registration'],
|
||||
SyncManager: ['registration.sync'],
|
||||
PeriodicSyncManager: ['registration.periodicSync'],
|
||||
SyncEevnt: ['new SyncEvent("tag", "lastChance")'],
|
||||
PeriodicSyncEevnt: ['new PeriodicSyncEvent("tag")'],
|
||||
});
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue