mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
16 lines
458 B
JavaScript
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');
|