Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 20 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /webrtc-identity/idlharness.https.window.html - WPT Dashboard Interop Dashboard
// 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) {}
}
);