Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <script src=../../resources/testharness.js></script> | |
| 3 <script src=../../resources/testharnessreport.js></script> | |
| 4 <script> | |
| 5 // Check one Video format that should be recordable and another that should be. | |
| 6 // Supported formats return "maybe". Same for Audio. | |
| 7 // http://w3c.github.io/mediacapture-record/MediaRecorder.html#methods | |
|
Peter Beverloo
2015/09/01 17:17:12
micro nit: https
mcasas
2015/09/02 03:10:17
Done.
| |
| 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/webm, codecs="vp8"'), "ma ybe"); | |
| 15 }, 'check MediaRecorder.canRecordMimeType() with video/webm and vp8'); | |
| 16 | |
| 17 test(function() { | |
| 18 assert_equals(MediaRecorder.canRecordMimeType("audio/invalid"), ""); | |
| 19 }, 'check MediaRecorder.canRecordMimeType() with audio/invalid'); | |
| 20 | |
| 21 test(function() { | |
| 22 assert_equals(MediaRecorder.canRecordMimeType("audio/webm;codecs=opus"), "mayb e"); | |
| 23 }, 'check MediaRecorder.canRecordMimeType() with audio/webm and opus'); | |
| 24 | |
| 25 </script> | |
| OLD | NEW |