servo/tests/wpt/web-platform-tests/animation-worklet/interfaces.any.js

16 lines
466 B
JavaScript

// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
'use strict';
// https://wicg.github.io/animation-worklet/
promise_test(async () => {
const idl = await (await fetch('/interfaces/animation-worklet.idl')).text();
const html = await (await fetch('/interfaces/html.idl')).text();
const idlArray = new IdlArray();
idlArray.add_idls(idl);
idlArray.add_dependency_idls(html);
idlArray.test();
done();
}, 'Test driver');