Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / media / media-can-play-octet-stream.html
blob3a31e2e323a3726d7c2dcba01678f03d7527bd99
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="video-test.js"></script>
5 <script>
6 function test()
8 testExpected("mediaElement.canPlayType('APPLICATION/octet-stream')", "");
9 testExpected("mediaElement.canPlayType('application/octet-stream;codecs=theora')", "");
10 testExpected("mediaElement.canPlayType('application/octet-stream;codecs=mp4')", "");
13 function start()
15 consoleWrite("<em>++ Test with &lt;video&gt; element.</em>");
16 mediaElement = document.getElementsByTagName('video')[0];
17 test();
19 consoleWrite("<br><em>++ Test with &lt;audio&gt; element.</em>");
20 mediaElement = new Audio();
21 test();
23 endTest();
25 </script>
26 </head>
27 <body onload="start()">
28 <video controls></video>
29 <p>Test HTMLMediaElement <em>canPlayType()</em> method with "application/octet-stream".</p>
30 <p>These tests should always pass as no WebKit port should support "application/octet-stream".</p>
31 </body>
32 </html>