idlharness.https.any.js (719B)
1 // META: global=window,worker 2 // META: script=/resources/WebIDLParser.js 3 // META: script=/resources/idlharness.js 4 5 'use strict'; 6 7 idl_test( 8 ['webtransport'], 9 ['webidl', 'streams'], 10 idl_array => { 11 idl_array.add_objects({ 12 WebTransport: ['webTransport'], 13 // TODO: The stream APIs below require a working connection to create. 14 // BidirectionalStream 15 // SendStream 16 // ReceiveStream 17 }); 18 self.webTransport = new WebTransport("https://example.com/"); 19 // `ready` and `closed` promises will be rejected due to connection error. 20 // Catches them to avoid unhandled rejections. 21 self.webTransport.ready.catch(() => {}); 22 self.webTransport.closed.catch(() => {}); 23 } 24 );