mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Update web-platform-tests to revision b'b728032f59a396243864b0f8584e7211e3632005'
This commit is contained in:
parent
ace9b32b1c
commit
df68c4e5d1
15632 changed files with 514865 additions and 155000 deletions
|
@ -1,23 +0,0 @@
|
|||
// 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")'],
|
||||
});
|
||||
}
|
||||
}
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue