Add new access object callback
[framework/web/webkit-efl.git] / LayoutTests / media / media-can-play-ogg.html
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];
8
9                 testExpected("video.canPlayType('audio/ogg')", "maybe");
10                 testExpected("video.canPlayType('video/ogg')", "maybe");
11
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");
16
17                 endTest();
18             }
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>