mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision ea14651f262003177d0ba5819bd2806a1327b12a
This commit is contained in:
parent
847115ba04
commit
816185f094
272 changed files with 5766 additions and 2855 deletions
18
tests/wpt/web-platform-tests/fetch/api/idl.any.js
Normal file
18
tests/wpt/web-platform-tests/fetch/api/idl.any.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
// META: global=window,worker
|
||||
// META: script=/resources/WebIDLParser.js
|
||||
// META: script=/resources/idlharness.js
|
||||
|
||||
promise_test(async() => {
|
||||
const text = await (await fetch("/interfaces/fetch.idl")).text();
|
||||
const idl_array = new IdlArray();
|
||||
idl_array.add_idls(text);
|
||||
idl_array.add_untested_idls("[Exposed=(Window,Worker)] interface AbortSignal {};");
|
||||
idl_array.add_untested_idls("[Exposed=(Window,Worker)] interface ReadableStream {};");
|
||||
idl_array.add_untested_idls("enum ReferrerPolicy {};");
|
||||
idl_array.add_objects({
|
||||
Headers: ["new Headers()"],
|
||||
Request: ["new Request('about:blank')"],
|
||||
Response: ["new Response()"],
|
||||
});
|
||||
idl_array.test();
|
||||
}, "Fetch Standard IDL");
|
Loading…
Add table
Add a link
Reference in a new issue