Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 9 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /background-sync/idlharness.https.any.html - WPT Dashboard Interop Dashboard
- /background-sync/idlharness.https.any.worker.html - WPT Dashboard Interop Dashboard
// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
// META: timeout=long
'use strict';
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")'],
});
}
}
);