fune/testing/web-platform/tests/domparsing/interfaces.any.js
Luke Bjerring e23e537af2 Bug 1465876 [wpt PR 9752] - Update the DOM-Parsing IDL file, a=testonly
Automatic update from web-platform-testsAdd DOM-Parsing IDL file + test (#9752)

--

wpt-commits: 0f222620c19433eebe6d9dcb3c3319aae1532553
wpt-pr: 9752
2018-06-10 09:28:29 +01:00

16 lines
458 B
JavaScript

// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
'use strict';
// https://w3c.github.io/DOM-Parsing/
promise_test(async () => {
const dom = await fetch('/interfaces/dom.idl').then(r => r.text());
const idl = await fetch('/interfaces/DOM-Parsing.idl').then(r => r.text());
const idlArray = new IdlArray();
idlArray.add_untested_idls(dom);
idlArray.add_idls(idl);
idlArray.test();
done();
}, 'Test driver');