Update web-platform-tests to revision 4a5223502fa660ce03e470af6a61c8bc26c5a8ee

This commit is contained in:
WPT Sync Bot 2018-04-23 21:13:37 -04:00
parent c5f7c9ccf3
commit e891345f26
1328 changed files with 36632 additions and 20588 deletions

View file

@ -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.');