diff options
Diffstat (limited to 'testing/web-platform/tests/mediacapture-record/MediaRecorder-events-and-exceptions.html')
-rw-r--r-- | testing/web-platform/tests/mediacapture-record/MediaRecorder-events-and-exceptions.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/testing/web-platform/tests/mediacapture-record/MediaRecorder-events-and-exceptions.html b/testing/web-platform/tests/mediacapture-record/MediaRecorder-events-and-exceptions.html index 409e46c91d..97ada21266 100644 --- a/testing/web-platform/tests/mediacapture-record/MediaRecorder-events-and-exceptions.html +++ b/testing/web-platform/tests/mediacapture-record/MediaRecorder-events-and-exceptions.html @@ -8,6 +8,8 @@ <meta name=variant content="?mimeType=video/webm;codecs=vp9,opus"> <meta name=variant content="?mimeType=video/webm;codecs=av1,opus"> <meta name=variant content="?mimeType=video/mp4;codecs=avc1,mp4a.40.2"> + <meta name=variant content="?mimeType=video/mp4;codecs=vp9,opus"> + <meta name=variant content="?mimeType=video/mp4"> <link rel="help" href="https://w3c.github.io/mediacapture-record/MediaRecorder.html#mediarecorder"> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> @@ -81,9 +83,9 @@ const params = new URLSearchParams(window.location.search); const mimeType = params.get('mimeType'); - if (mimeType) { - assert_implements_optional(MediaRecorder.isTypeSupported(mimeType), - `"${mimeType}" for MediaRecorder is not supported`); + if (mimeType && !MediaRecorder.isTypeSupported(mimeType)) { + test.done(); + return; } const recorder = new MediaRecorder(new MediaStream(), { mimeType }); |