From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- .../web-platform/tests/mst-content-hint/META.yml | 3 + .../MediaStreamTrack-contentHint.html | 111 ++++++++++++++++++ .../RTCRtpSendParameters-degradationEffect.html | 129 +++++++++++++++++++++ ...RTCRtpSendParameters-degradationPreference.html | 129 +++++++++++++++++++++ .../tests/mst-content-hint/idlharness.window.js | 19 +++ 5 files changed, 391 insertions(+) create mode 100644 testing/web-platform/tests/mst-content-hint/META.yml create mode 100644 testing/web-platform/tests/mst-content-hint/MediaStreamTrack-contentHint.html create mode 100644 testing/web-platform/tests/mst-content-hint/RTCRtpSendParameters-degradationEffect.html create mode 100644 testing/web-platform/tests/mst-content-hint/RTCRtpSendParameters-degradationPreference.html create mode 100644 testing/web-platform/tests/mst-content-hint/idlharness.window.js (limited to 'testing/web-platform/tests/mst-content-hint') diff --git a/testing/web-platform/tests/mst-content-hint/META.yml b/testing/web-platform/tests/mst-content-hint/META.yml new file mode 100644 index 0000000000..7f79eccbaa --- /dev/null +++ b/testing/web-platform/tests/mst-content-hint/META.yml @@ -0,0 +1,3 @@ +spec: https://w3c.github.io/mst-content-hint/ +suggested_reviewers: + - alvestrand diff --git a/testing/web-platform/tests/mst-content-hint/MediaStreamTrack-contentHint.html b/testing/web-platform/tests/mst-content-hint/MediaStreamTrack-contentHint.html new file mode 100644 index 0000000000..98c88e66ea --- /dev/null +++ b/testing/web-platform/tests/mst-content-hint/MediaStreamTrack-contentHint.html @@ -0,0 +1,111 @@ + + + + + + diff --git a/testing/web-platform/tests/mst-content-hint/RTCRtpSendParameters-degradationEffect.html b/testing/web-platform/tests/mst-content-hint/RTCRtpSendParameters-degradationEffect.html new file mode 100644 index 0000000000..a2da6cd139 --- /dev/null +++ b/testing/web-platform/tests/mst-content-hint/RTCRtpSendParameters-degradationEffect.html @@ -0,0 +1,129 @@ + + + +RTCRtpSendParameters degradationPreference effect + + + + diff --git a/testing/web-platform/tests/mst-content-hint/RTCRtpSendParameters-degradationPreference.html b/testing/web-platform/tests/mst-content-hint/RTCRtpSendParameters-degradationPreference.html new file mode 100644 index 0000000000..3573bb5876 --- /dev/null +++ b/testing/web-platform/tests/mst-content-hint/RTCRtpSendParameters-degradationPreference.html @@ -0,0 +1,129 @@ + + +RTCRtpSendParameters degradationPreference + + + diff --git a/testing/web-platform/tests/mst-content-hint/idlharness.window.js b/testing/web-platform/tests/mst-content-hint/idlharness.window.js new file mode 100644 index 0000000000..ef0e5e9812 --- /dev/null +++ b/testing/web-platform/tests/mst-content-hint/idlharness.window.js @@ -0,0 +1,19 @@ +// 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]; + } +); -- cgit v1.2.3