OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <script src=../../resources/testharness.js></script> | |
3 <script src=../../resources/testharnessreport.js></script> | |
4 <script> | |
5 // Check the Video formats that should be recordable and one that should not be. | |
6 // Supported formats return "maybe". Same for Audio. | |
7 // https://w3c.github.io/mediacapture-record/MediaRecorder.html#methods | |
8 | |
9 test(function() { | |
10 assert_equals(MediaRecorder.canRecordMimeType("video/invalid"), ""); | |
11 }, 'check MediaRecorder.canRecordMimeType() with video/invalid'); | |
12 | |
13 test(function() { | |
14 assert_equals(MediaRecorder.canRecordMimeType("video/vp8"), "maybe"); | |
15 }, 'check MediaRecorder.canRecordMimeType() with video/vp8'); | |
16 | |
17 test(function() { | |
18 assert_equals(MediaRecorder.canRecordMimeType("video/vp9"), "maybe"); | |
19 }, 'check MediaRecorder.canRecordMimeType() with video/vp9'); | |
20 | |
21 test(function() { | |
22 assert_equals(MediaRecorder.canRecordMimeType("audio/invalid"), ""); | |
23 }, 'check MediaRecorder.canRecordMimeType() with audio/invalid'); | |
24 | |
25 test(function() { | |
26 assert_equals(MediaRecorder.canRecordMimeType("audio/opus"), "maybe"); | |
27 }, 'check MediaRecorder.canRecordMimeType() with audio/opus'); | |
28 | |
29 </script> | |
OLD | NEW |