forked from mirrors/gecko-dev
Automatic update from web-platform-tests Rename WebIDL.idl to webidl.idl (#31241) This rename has happened in @webref/idl 2.7.0: https://github.com/web-platform-tests/wpt/pull/31237 Tests need to be adapted, so do this rename manually. -- wpt-commits: 7e8c07686a91ee9b7f211209afb7830546f134d8 wpt-pr: 31241
24 lines
669 B
JavaScript
24 lines
669 B
JavaScript
// META: script=/resources/WebIDLParser.js
|
|
// META: script=/resources/idlharness.js
|
|
|
|
'use strict';
|
|
|
|
idl_test(
|
|
['webrtc-identity'],
|
|
['webrtc', 'mediacapture-streams', 'html', 'dom', 'webidl'],
|
|
async idlArray => {
|
|
idlArray.add_objects({
|
|
RTCPeerConnection: [`new RTCPeerConnection()`],
|
|
RTCIdentityAssertion: [`new RTCIdentityAssertion('idp', 'name')`],
|
|
MediaStreamTrack: ['track'],
|
|
// TODO: RTCIdentityProviderGlobalScope
|
|
// TODO: RTCIdentityProviderRegistrar
|
|
});
|
|
|
|
try {
|
|
self.track = await navigator.mediaDevices
|
|
.getUserMedia({audio: true})
|
|
.then(m => m.getTracks()[0]);
|
|
} catch (e) {}
|
|
}
|
|
);
|