blob: 29fb87b8263e87a0d570c874a9531e64d5d76b83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
// META: timeout=long
'use strict';
// https://wicg.github.io/background-sync/spec/
idl_test(
['background-sync'],
['service-workers', 'html', 'dom'],
idlArray => {
const isServiceWorker = location.pathname.includes('.serviceworker.');
if (isServiceWorker) {
idlArray.add_objects({
ServiceWorkerGlobalScope: ['self', 'onsync'],
ServiceWorkerRegistration: ['registration'],
SyncManager: ['registration.sync'],
SyncEvent: ['new SyncEvent("tag", "lastChance")'],
});
}
}
);
|