gecko-dev/testing/web-platform/tests/worklets/idlharness.worker.js
Luke Bjerring 2efff44340 Bug 1476275 [wpt PR 9856] - Update the worklets IDL file, a=testonly
Automatic update from web-platform-testsAdd the worklets IDL file and test (#9856)

--

wpt-commits: f582e7ad3b06d37fa65957aa93dc62bf7429e803
wpt-pr: 9856
2018-07-29 18:47:03 +01:00

13 lines
384 B
JavaScript

importScripts("/resources/testharness.js");
importScripts("/resources/WebIDLParser.js", "/resources/idlharness.js");
// https://drafts.css-houdini.org/worklets/
promise_test(async () => {
const idl = await fetch('/interfaces/worklets.idl').then(r => r.text());
const idl_array = new IdlArray();
idl_array.add_idls(idl);
idl_array.test();
}, 'worklets interfaces');
done();