mirror of
https://github.com/servo/servo.git
synced 2025-10-04 10:39:16 +01:00
29 lines
977 B
JavaScript
29 lines
977 B
JavaScript
// 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.');
|