Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / media-can-play-webm.html
blob022e136ef890504640aa8b25cbd561cf6e72ce7a
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="video-test.js"></script>
5 <script>
6 function start() {
7 video = mediaElement = document.getElementsByTagName('video')[0];
9 testExpected("video.canPlayType('audio/webm')", "maybe");
10 testExpected("video.canPlayType('video/webm')", "maybe");
12 testExpected("video.canPlayType('audio/webm; codecs=vorbis')", "probably");
13 testExpected("video.canPlayType('video/webm; codecs=vp8,vorbis')", "probably");
14 testExpected("video.canPlayType('video/webm; codecs=vp8')", "probably");
15 testExpected("video.canPlayType('video/webm; codecs=vp8.0')", "probably");
16 testExpected("video.canPlayType('video/webm; codecs=vp8.0,vorbis')", "probably");
17 testExpected("video.canPlayType('video/webm; codecs=vp8.1')", "");
19 testExpected("video.canPlayType('video/webm; codecs=vp9')", "probably");
20 testExpected("video.canPlayType('video/webm; codecs=vp9,vorbis')", "probably");
21 testExpected("video.canPlayType('video/webm; codecs=vp9.0')", "probably");
22 testExpected("video.canPlayType('video/webm; codecs=vp9.0,vorbis')", "probably");
23 testExpected("video.canPlayType('video/webm; codecs=vp9.1')", "");
25 testExpected("video.canPlayType('audio/webm; codecs=opus')", "probably");
26 testExpected("video.canPlayType('video/webm; codecs=vp9,opus')", "probably");
27 testExpected("video.canPlayType('video/webm; codecs=vp9.0,opus')", "probably");
28 testExpected("video.canPlayType('video/webm; codecs=vp8,opus')", "probably");
29 testExpected("video.canPlayType('video/webm; codecs=vp8.0,opus')", "probably");
31 endTest();
33 </script>
34 </head>
35 <body onload="start()">
36 <video controls></video>
37 <p>Test HTMLMediaElement <em>canPlayType()</em> method for webm media containers.</p>
38 <p>These tests may be expected to fail if the WebKit port does not support the format.</p>
39 </body>
40 </html>