mirror of
https://github.com/servo/servo.git
synced 2025-07-01 12:33:40 +01:00
15 lines
445 B
JavaScript
15 lines
445 B
JavaScript
// META: script=/resources/WebIDLParser.js
|
|
// META: script=/resources/idlharness.js
|
|
|
|
promise_test(async() => {
|
|
const text = await fetch('/interfaces/url.idl')
|
|
.then(response => response.text());
|
|
const idlArray = new IdlArray();
|
|
idlArray.add_idls(text);
|
|
idlArray.add_objects({
|
|
URL: ['new URL("http://foo")'],
|
|
URLSearchParams: ['new URLSearchParams("hi=there&thank=you")']
|
|
});
|
|
idlArray.test();
|
|
done();
|
|
}, 'Test driver');
|