mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision f1e1bd6bfa544af8059ff8ef79d622281f9ec0a8
This commit is contained in:
parent
1b6715158d
commit
38ab56be1a
64 changed files with 5155 additions and 165 deletions
|
@ -0,0 +1,24 @@
|
|||
// META: script=/resources/WebIDLParser.js
|
||||
// META: script=/resources/idlharness.js
|
||||
|
||||
'use strict';
|
||||
|
||||
idl_test(
|
||||
['webrtc-identity'],
|
||||
['webrtc', 'mediacapture-streams', 'html', 'dom'],
|
||||
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) {}
|
||||
}
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue