RTCRtpScriptTransform-bad-chunk.https.html (674B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharnessreport.js"></script> 5 <script src ="routines.js"></script> 6 7 <video id="video1" autoplay></video> 8 9 <script> 10 promise_test(async (test) => { 11 const {sender, receiver, senderPc, receiverPc} = await createConnectionWithTransform(test, 'RTCRtpScriptTransform-bad-chunk-worker.js', {audio: true}); 12 13 assert_array_equals(await getNextMessage(sender.transform.port), ["TypeError", "null"]); 14 assert_array_equals(await getNextMessage(sender.transform.port), ["TypeError", "RTCEncodedAudioFrame"]); 15 }, "Writing bad chunks should error the stream"); 16 </script>