From def92d1b8e9d373e2f6f27c366d578d97d8960c6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 15 May 2024 05:34:50 +0200 Subject: Merging upstream version 126.0. Signed-off-by: Daniel Baumann --- .../RTCRtpScriptTransform-bad-chunk-worker.js | 13 +++ .../RTCRtpScriptTransform-bad-chunk.https.html | 16 +++ .../RTCEncodedAudioFrame-metadata.https.html | 129 +++++++++++++++++++++ 3 files changed, 158 insertions(+) create mode 100644 testing/web-platform/tests/webrtc-encoded-transform/RTCRtpScriptTransform-bad-chunk-worker.js create mode 100644 testing/web-platform/tests/webrtc-encoded-transform/RTCRtpScriptTransform-bad-chunk.https.html create mode 100644 testing/web-platform/tests/webrtc-encoded-transform/tentative/RTCEncodedAudioFrame-metadata.https.html (limited to 'testing/web-platform/tests/webrtc-encoded-transform') diff --git a/testing/web-platform/tests/webrtc-encoded-transform/RTCRtpScriptTransform-bad-chunk-worker.js b/testing/web-platform/tests/webrtc-encoded-transform/RTCRtpScriptTransform-bad-chunk-worker.js new file mode 100644 index 0000000000..cc9dee42ac --- /dev/null +++ b/testing/web-platform/tests/webrtc-encoded-transform/RTCRtpScriptTransform-bad-chunk-worker.js @@ -0,0 +1,13 @@ +onrtctransform = async (event) => { + const { port } = event.transformer.options; + port.postMessage("started"); + + const reader = event.transformer.readable.getReader(); + const writer = event.transformer.writable.getWriter(); + + const { done, value } = await reader.read(); + + writer.write(null).catch(err => port.postMessage([err.name, 'null'])); + writer.write(value).catch(err => port.postMessage([err.name, value.constructor.name])); +}; +self.postMessage('registered'); diff --git a/testing/web-platform/tests/webrtc-encoded-transform/RTCRtpScriptTransform-bad-chunk.https.html b/testing/web-platform/tests/webrtc-encoded-transform/RTCRtpScriptTransform-bad-chunk.https.html new file mode 100644 index 0000000000..a837f627f2 --- /dev/null +++ b/testing/web-platform/tests/webrtc-encoded-transform/RTCRtpScriptTransform-bad-chunk.https.html @@ -0,0 +1,16 @@ + + + + + + + + + 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 new file mode 100644 index 0000000000..1e420e6f72 --- /dev/null +++ b/testing/web-platform/tests/webrtc-encoded-transform/tentative/RTCEncodedAudioFrame-metadata.https.html @@ -0,0 +1,129 @@ + + +RTCEncodedAudioFrame can be cloned and distributed + + + + + + + + + -- cgit v1.2.3