diff options
Diffstat (limited to 'tests/wpt/web-platform-tests/console/idlharness.any.js')
-rw-r--r-- | tests/wpt/web-platform-tests/console/idlharness.any.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/console/idlharness.any.js b/tests/wpt/web-platform-tests/console/idlharness.any.js new file mode 100644 index 00000000000..114564f19fa --- /dev/null +++ b/tests/wpt/web-platform-tests/console/idlharness.any.js @@ -0,0 +1,14 @@ +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js + +// https://console.spec.whatwg.org/ + +promise_test(async () => { + const srcs = ['console']; + const [idl] = await Promise.all( + srcs.map(i => fetch(`/interfaces/${i}.idl`).then(r => r.text()))); + + const idl_array = new IdlArray(); + idl_array.add_idls(idl); + idl_array.test(); +}, 'console interfaces'); |