summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/webrtc-encoded-transform/tentative/RTCEncodedVideoFrame-metadata.https.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:37 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 05:35:37 +0000
commita90a5cba08fdf6c0ceb95101c275108a152a3aed (patch)
tree532507288f3defd7f4dcf1af49698bcb76034855 /testing/web-platform/tests/webrtc-encoded-transform/tentative/RTCEncodedVideoFrame-metadata.https.html
parentAdding debian version 126.0.1-1. (diff)
downloadfirefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.tar.xz
firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.zip
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/webrtc-encoded-transform/tentative/RTCEncodedVideoFrame-metadata.https.html')
-rw-r--r--testing/web-platform/tests/webrtc-encoded-transform/tentative/RTCEncodedVideoFrame-metadata.https.html26
1 files changed, 13 insertions, 13 deletions
diff --git a/testing/web-platform/tests/webrtc-encoded-transform/tentative/RTCEncodedVideoFrame-metadata.https.html b/testing/web-platform/tests/webrtc-encoded-transform/tentative/RTCEncodedVideoFrame-metadata.https.html
index a2c684c1f1..77e1ed118f 100644
--- a/testing/web-platform/tests/webrtc-encoded-transform/tentative/RTCEncodedVideoFrame-metadata.https.html
+++ b/testing/web-platform/tests/webrtc-encoded-transform/tentative/RTCEncodedVideoFrame-metadata.https.html
@@ -80,29 +80,29 @@ promise_test(async t => {
promise_test(async t => {
const senderReader = await setupLoopbackWithCodecAndGetReader(t, 'VP8');
const result = await senderReader.read();
- const metadata = result.value.getMetadata();
- metadata.rtpTimestamp = 100;
- const newFrame = new RTCEncodedVideoFrame(result.value, metadata);
+ const frame_metadata = result.value.getMetadata();
+ frame_metadata.rtpTimestamp = 100;
+ const newFrame = new RTCEncodedVideoFrame(result.value, {metadata: frame_metadata});
const newMetadata = newFrame.getMetadata();
// Encoding-related metadata.
- assert_equals(newMetadata.frameId, metadata.frameId, 'frameId');
- assert_array_equals(newMetadata.dependencies, metadata.dependencies,
+ assert_equals(newMetadata.frameId, frame_metadata.frameId, 'frameId');
+ assert_array_equals(newMetadata.dependencies, frame_metadata.dependencies,
'dependencies');
- assert_equals(newMetadata.width, metadata.width, 'width');
- assert_equals(newMetadata.height, metadata.height, 'height');
- assert_equals(newMetadata.spatialIndex, metadata.spatialIndex,
+ assert_equals(newMetadata.width, frame_metadata.width, 'width');
+ assert_equals(newMetadata.height, frame_metadata.height, 'height');
+ assert_equals(newMetadata.spatialIndex, frame_metadata.spatialIndex,
'spatialIndex');
- assert_equals(newMetadata.temporalIndex, metadata.temporalIndex,
+ assert_equals(newMetadata.temporalIndex, frame_metadata.temporalIndex,
'temporalIndex');
// RTP-related metadata.
assert_equals(newMetadata.synchronizationSource,
- metadata.synchronizationSource, 'synchronizationSource');
+ frame_metadata.synchronizationSource, 'synchronizationSource');
assert_array_equals(newMetadata.contributingSources,
- metadata.contributingSources, 'contributingSources');
- assert_equals(newMetadata.payloadType, metadata.payloadType, 'payloadType');
- assert_equals(newMetadata.rtpTimestamp, metadata.rtpTimestamp, 'rtpTimestamp');
+ frame_metadata.contributingSources, 'contributingSources');
+ assert_equals(newMetadata.payloadType, frame_metadata.payloadType, 'payloadType');
+ assert_equals(newMetadata.rtpTimestamp, frame_metadata.rtpTimestamp, 'rtpTimestamp');
assert_not_equals(newMetadata.rtpTimestamp, result.value.getMetadata().rtpTimestamp, 'rtpTimestamp');
}, "[VP8] constructor with metadata carries over codec-specific properties");