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