Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / media-can-play-ogg.html
blob6f0214a718b78e8757fc8bf79d0dd3aa4ad71c37
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/ogg')", "maybe");
10 testExpected("video.canPlayType('video/ogg')", "maybe");
12 testExpected("video.canPlayType('audio/ogg; codecs=vorbis')", "probably");
13 testExpected("video.canPlayType('audio/ogg; codecs=opus')", "probably");
14 testExpected("video.canPlayType('video/ogg; codecs=theora')", "probably");
15 testExpected("video.canPlayType('video/ogg; codecs=theora,vorbis')", "probably");
17 endTest();
19 </script>
20 </head>
21 <body onload="start()">
22 <video controls></video>
23 <p>Test HTMLMediaElement <em>canPlayType()</em> method for ogg media containers.</p>
24 <p>These tests may be expected to fail if the WebKit port does not support the format.</p>
25 </body>
26 </html>