Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(536)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/mediarecorder/MediaRecorder-isTypeSupported.html

Issue 2234563002: MediaRecorder: support recording with no multiplexing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: consider empty mimeTypes Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/media/media_recorder_handler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 some video MIME types that should be recordable and a few that should 5 // Check some video MIME types that should be recordable and a few that should
6 // not be. Supported MIME types return true. Same for Audio. 6 // not be. Supported MIME types return true. 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_false(MediaRecorder.isTypeSupported("video/invalid")); 10 assert_false(MediaRecorder.isTypeSupported("video/invalid"));
(...skipping 23 matching lines...) Expand all
34 assert_false(MediaRecorder.isTypeSupported("audio/invalid")); 34 assert_false(MediaRecorder.isTypeSupported("audio/invalid"));
35 assert_false(MediaRecorder.isTypeSupported("audio/ogg")); 35 assert_false(MediaRecorder.isTypeSupported("audio/ogg"));
36 assert_false(MediaRecorder.isTypeSupported("audio/webm;codecs=vorbis")); 36 assert_false(MediaRecorder.isTypeSupported("audio/webm;codecs=vorbis"));
37 }, 'check MediaRecorder.isTypeSupported() with invalid audio MIME types'); 37 }, 'check MediaRecorder.isTypeSupported() with invalid audio MIME types');
38 38
39 test(function() { 39 test(function() {
40 assert_true(MediaRecorder.isTypeSupported("audio/webm")); 40 assert_true(MediaRecorder.isTypeSupported("audio/webm"));
41 assert_true(MediaRecorder.isTypeSupported("audio/webm;codecs=opus")); 41 assert_true(MediaRecorder.isTypeSupported("audio/webm;codecs=opus"));
42 }, 'check MediaRecorder.isTypeSupported() with valid audio MIME types'); 42 }, 'check MediaRecorder.isTypeSupported() with valid audio MIME types');
43 43
44 test(function() {
45 assert_true(MediaRecorder.isTypeSupported("video/vp8"));
46 assert_true(MediaRecorder.isTypeSupported("video/VP8"));
47 assert_true(MediaRecorder.isTypeSupported("video/vp9"));
48 assert_true(MediaRecorder.isTypeSupported("video/VP9"));
49 assert_true(MediaRecorder.isTypeSupported("video/h264"));
50 assert_true(MediaRecorder.isTypeSupported("video/H264"));
51
52 assert_true(MediaRecorder.isTypeSupported("audio/opus"));
53 assert_true(MediaRecorder.isTypeSupported("audio/OpUs"));
54 assert_true(MediaRecorder.isTypeSupported("audio/OPUS"));
55 }, 'check MediaRecorder.isTypeSupported() works for non-contained types');
56
44 </script> 57 </script>
OLDNEW
« no previous file with comments | « content/renderer/media/media_recorder_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698