diff options
Diffstat (limited to 'testing/web-platform/tests/webrtc-encoded-transform')
2 files changed, 15 insertions, 15 deletions
diff --git a/testing/web-platform/tests/webrtc-encoded-transform/tentative/RTCEncodedAudioFrame-metadata.https.html b/testing/web-platform/tests/webrtc-encoded-transform/tentative/RTCEncodedAudioFrame-metadata.https.html index 1e420e6f72..609467b5e3 100644 --- a/testing/web-platform/tests/webrtc-encoded-transform/tentative/RTCEncodedAudioFrame-metadata.https.html +++ b/testing/web-platform/tests/webrtc-encoded-transform/tentative/RTCEncodedAudioFrame-metadata.https.html @@ -76,7 +76,7 @@ promise_test(async t => { const original = result.value; let newMetadata = original.getMetadata(); newMetadata.rtpTimestamp = newMetadata.rtpTimestamp + 1; - let newFrame = new RTCEncodedAudioFrame(original, newMetadata); + let newFrame = new RTCEncodedAudioFrame(original, {metadata: newMetadata}); assert_not_equals(original.getMetadata().rtpTimestamp, newFrame.getMetadata().rtpTimestamp); assert_equals(newMetadata.rtpTimestamp, newFrame.getMetadata().rtpTimestamp); assert_equals(original.getMetadata().absCaptureTime, newFrame.getMetadata().absCaptureTime); @@ -117,7 +117,7 @@ promise_test(async t => { const original = result.value; let newMetadata = original.getMetadata(); newMetadata.synchronizationSource = newMetadata.synchronizationSource + 1; - assert_throws_dom("InvalidModificationError", () => new RTCEncodedAudioFrame(original, newMetadata)); + assert_throws_dom("InvalidModificationError", () => new RTCEncodedAudioFrame(original, {metadata: newMetadata})); resolve(); } }); 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"); |