Revision ae6368e7b8fafc7acdd9b6c0d8a31bda95f72c68 authored by kaixinjxq on 30 July 2018, 06:26:36 UTC, committed by TAMURA, Kent on 30 July 2018, 06:26:36 UTC
1 parent 57f4c96
Raw File
interfaces.any.js
// 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.');
back to top