chromium/third_party/blink/web_tests/fast/mediarecorder/MediaRecorder-no-tracks.html

<!DOCTYPE html>
<script src=../../resources/testharness.js></script>
<script src=../../resources/testharnessreport.js></script>
<script>
// Check that trying to start a recording from a stream without tracks fails.
test(function() {
  const recorder = new MediaRecorder(new MediaStream());
  assert_throws_dom("NotSupportedError", () => recorder.start());
  // Try again to verify that it fails the same way.
  assert_throws_dom("NotSupportedError", () => recorder.start());
}, 'Trying to record a stream without tracks fails');

</script>