From 43a97878ce14b72f0981164f87f2e35e14151312 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:22:09 +0200 Subject: Adding upstream version 110.0.1. Signed-off-by: Daniel Baumann --- .../tests/webtransport/idlharness.https.any.js | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 testing/web-platform/tests/webtransport/idlharness.https.any.js (limited to 'testing/web-platform/tests/webtransport/idlharness.https.any.js') diff --git a/testing/web-platform/tests/webtransport/idlharness.https.any.js b/testing/web-platform/tests/webtransport/idlharness.https.any.js new file mode 100644 index 0000000000..248bc41abe --- /dev/null +++ b/testing/web-platform/tests/webtransport/idlharness.https.any.js @@ -0,0 +1,24 @@ +// META: global=window,worker +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js + +'use strict'; + +idl_test( + ['webtransport'], + ['webidl', 'streams'], + idl_array => { + idl_array.add_objects({ + WebTransport: ['webTransport'], + // TODO: The stream APIs below require a working connection to create. + // BidirectionalStream + // SendStream + // ReceiveStream + }); + self.webTransport = new WebTransport("https://example.com/"); + // `ready` and `closed` promises will be rejected due to connection error. + // Catches them to avoid unhandled rejections. + self.webTransport.ready.catch(() => {}); + self.webTransport.closed.catch(() => {}); + } +); -- cgit v1.2.3