mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
Update web-platform-tests to revision 4a5223502fa660ce03e470af6a61c8bc26c5a8ee
This commit is contained in:
parent
c5f7c9ccf3
commit
e891345f26
1328 changed files with 36632 additions and 20588 deletions
|
@ -0,0 +1,29 @@
|
|||
// META: script=/resources/WebIDLParser.js
|
||||
// META: script=/resources/idlharness.js
|
||||
|
||||
'use strict';
|
||||
|
||||
// https://wicg.github.io/BackgroundSync/spec/
|
||||
|
||||
promise_test(async () => {
|
||||
const dom = await fetch('/interfaces/dom.idl').then(r => r.text());
|
||||
const html = await fetch('/interfaces/html.idl').then(r => r.text());
|
||||
const sw = await fetch('/interfaces/ServiceWorker.idl').then(r => r.text());
|
||||
const idl = await fetch('/interfaces/BackgroundSync.idl').then(response => response.text());
|
||||
|
||||
const idlArray = new IdlArray();
|
||||
idlArray.add_untested_idls(dom, { only: ['Event', 'EventInit', 'EventTarget'] });
|
||||
idlArray.add_untested_idls(html, { only: [
|
||||
'WorkerGlobalScope',
|
||||
'WindowOrWorkerGlobalScope'
|
||||
] });
|
||||
idlArray.add_untested_idls(sw, { only: [
|
||||
'ServiceWorkerRegistration',
|
||||
'ServiceWorkerGlobalScope',
|
||||
'ExtendableEvent',
|
||||
'ExtendableEventInit',
|
||||
] });
|
||||
idlArray.add_idls(idl);
|
||||
idlArray.test();
|
||||
done();
|
||||
}, 'Background Sync interfaces.');
|
Loading…
Add table
Add a link
Reference in a new issue