servo/tests/wpt/web-platform-tests/budget-api/interfaces.any.js

19 lines
607 B
JavaScript

// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
'use strict';
// See https://wicg.github.io/budget-api/
promise_test(async () => {
const html = await fetch('/interfaces/html.idl').then(r => r.text());
const workers = await fetch('/interfaces/dedicated-workers.idl').then(r => r.text());
const idl = await fetch('/interfaces/budget-api.idl').then(r => r.text());
const idlArray = new IdlArray();
idlArray.add_idls(idl);
idlArray.add_dependency_idls(html);
idlArray.add_dependency_idls(workers);
idlArray.test();
done();
}, 'budget-api interfaces.');