idlharness.https.window.js (669B)
1 // META: script=/resources/WebIDLParser.js 2 // META: script=/resources/idlharness.js 3 4 'use strict'; 5 6 idl_test( 7 ['webrtc-identity'], 8 ['webrtc', 'mediacapture-streams', 'html', 'dom', 'webidl'], 9 async idlArray => { 10 idlArray.add_objects({ 11 RTCPeerConnection: [`new RTCPeerConnection()`], 12 RTCIdentityAssertion: [`new RTCIdentityAssertion('idp', 'name')`], 13 MediaStreamTrack: ['track'], 14 // TODO: RTCIdentityProviderGlobalScope 15 // TODO: RTCIdentityProviderRegistrar 16 }); 17 18 try { 19 self.track = await navigator.mediaDevices 20 .getUserMedia({audio: true}) 21 .then(m => m.getTracks()[0]); 22 } catch (e) {} 23 } 24 );