mirror of
https://github.com/servo/servo.git
synced 2025-07-01 20:43:39 +01:00
19 lines
607 B
JavaScript
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.');
|