OLD | NEW |
---|---|
(Empty) | |
1 <script src=../../resources/testharness.js></script> | |
esprehn
2015/08/21 08:46:12
<!DOCTYPE html>
mcasas
2015/08/21 18:50:04
Done.
| |
2 <script src=../../resources/testharnessreport.js></script> | |
3 <script> | |
4 // Check one Video format that should be recordable and another that should be. | |
5 // Supported formats return "maybe". Same for Audio. | |
6 // http://w3c.github.io/mediacapture-record/MediaRecorder.html#methods | |
7 | |
8 test(function() { | |
9 assert_equals(MediaRecorder.canRecordMimeType("video/invalid"), ""); | |
10 }, 'check MediaRecorder.canRecordMimeType() with video/invalid'); | |
11 | |
12 test(function() { | |
13 assert_equals(MediaRecorder.canRecordMimeType('video/webm, codecs="vp8"'), "ma ybe"); | |
14 }, 'check MediaRecorder.canRecordMimeType() with video/webm and vp8'); | |
15 | |
16 test(function() { | |
17 assert_equals(MediaRecorder.canRecordMimeType("audio/invalid"), ""); | |
18 }, 'check MediaRecorder.canRecordMimeType() with audio/invalid'); | |
19 | |
20 test(function() { | |
21 assert_equals(MediaRecorder.canRecordMimeType("audio/webm;codecs=opus"), "mayb e"); | |
22 }, 'check MediaRecorder.canRecordMimeType() with audio/webm and opus'); | |
23 | |
24 </script> | |
OLD | NEW |