fune/testing/web-platform/tests/mst-content-hint/idlharness.window.js
Philip Jägenstedt 3b89ef7d30 Bug 1705707 [wpt PR 28544] - Add missing dependencies of idlharness.js tests, a=testonly
Automatic update from web-platform-tests
Add missing dependencies of idlharness.js tests

These tests are all slightly broken due to these missing dependencies.

--

wpt-commits: a35384596829f01d32d3d247c41f1bfba336b5a1
wpt-pr: 28544
2021-04-23 22:16:13 +00:00

19 lines
523 B
JavaScript

// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
// META: script=/webrtc/RTCPeerConnection-helper.js
'use strict';
idl_test(
['mst-content-hint'],
['mediacapture-streams', 'webrtc', 'dom'],
async idl_array => {
idl_array.add_objects({
MediaStreamTrack: ['audioTrack', 'videoTrack'],
});
const stream = await getNoiseStream({ audio: true, video: true });
self.audioTrack = stream.getAudioTracks()[0];
self.videoTrack = stream.getVideoTracks()[0];
}
);