aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/tests/interfaces/webtransport.idl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/tests/interfaces/webtransport.idl')
-rw-r--r--tests/wpt/tests/interfaces/webtransport.idl15
1 files changed, 13 insertions, 2 deletions
diff --git a/tests/wpt/tests/interfaces/webtransport.idl b/tests/wpt/tests/interfaces/webtransport.idl
index 24fe5b7e61b..eb456336081 100644
--- a/tests/wpt/tests/interfaces/webtransport.idl
+++ b/tests/wpt/tests/interfaces/webtransport.idl
@@ -3,10 +3,18 @@
// (https://github.com/w3c/webref)
// Source: WebTransport (https://w3c.github.io/webtransport/)
+[Exposed=(Window,Worker), SecureContext, Transferable]
+interface WebTransportDatagramsWritable : WritableStream {
+ attribute WebTransportSendGroup? sendGroup;
+ attribute long long sendOrder;
+};
+
[Exposed=(Window,Worker), SecureContext]
interface WebTransportDatagramDuplexStream {
+ WebTransportDatagramsWritable createWritable(
+ optional WebTransportSendOptions options = {});
readonly attribute ReadableStream readable;
- readonly attribute WritableStream writable;
+ readonly attribute WebTransportDatagramsWritable writable;
readonly attribute unsigned long maxDatagramSize;
attribute unrestricted double? incomingMaxAge;
@@ -79,9 +87,12 @@ dictionary WebTransportCloseInfo {
USVString reason = "";
};
-dictionary WebTransportSendStreamOptions {
+dictionary WebTransportSendOptions {
WebTransportSendGroup? sendGroup = null;
long long sendOrder = 0;
+};
+
+dictionary WebTransportSendStreamOptions : WebTransportSendOptions {
boolean waitUntilAvailable = false;
};