Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 27 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /webtransport/idlharness.https.any.html - WPT Dashboard Interop Dashboard
- /webtransport/idlharness.https.any.serviceworker.html - WPT Dashboard Interop Dashboard
- /webtransport/idlharness.https.any.sharedworker.html - WPT Dashboard Interop Dashboard
- /webtransport/idlharness.https.any.worker.html - WPT Dashboard Interop Dashboard
// 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
});
// `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(() => {});
}
);