Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 3 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /webtransport/historical.https.sub.any.html - WPT Dashboard Interop Dashboard
- /webtransport/historical.https.sub.any.serviceworker.html - WPT Dashboard Interop Dashboard
- /webtransport/historical.https.sub.any.sharedworker.html - WPT Dashboard Interop Dashboard
- /webtransport/historical.https.sub.any.worker.html - WPT Dashboard Interop Dashboard
// META: global=window,worker
// META: script=/common/get-host-info.sub.js
// META: script=resources/webtransport-test-helpers.sub.js
async function get_wt() {
const wt = new WebTransport(webtransport_url('{{domains[nonexistent]}}'));
// `ready` and `closed` promises will be rejected due to connection error.
// Catches them to avoid unhandled rejections.
wt.ready.catch(() => {});
wt.closed.catch(() => {});
return wt;
}
promise_test(async t => {
const wt = await get_wt();
assert_false('writable' in wt.datagrams);
}, 'WebTransportDatagramDuplexStream#writable is removed');
promise_test(async t => {
const wt = await get_wt();
assert_false('incomingHighWaterMark' in wt.datagrams);
}, 'WebTransportDatagramDuplexStream#incomingHighWaterMark is removed');
promise_test(async t => {
const wt = await get_wt();
assert_false('outgoingHighWaterMark' in wt.datagrams);
}, 'WebTransportDatagramDuplexStream#outgoingHighWaterMark is removed');