[Modern Media Controls] Turn media/modern-media-controls/ios-inline-media-controls...
[WebKit-https.git] / LayoutTests / media / media-can-play-case-insensitive.html
1 <!DOCTYPE html>
2 <html>
3     <head>
4         <script src="video-test.js"></script>
5         <script>
6             function start() {
7                 video = document.getElementsByTagName('video')[0];
8
9                 testExpected("video.canPlayType('video/mp4') === video.canPlayType('video/MP4')", true);
10                 testExpected("video.canPlayType('VIDEO/mp4') === video.canPlayType('video/mp4')", true);
11                 testExpected("video.canPlayType('video/ogg') === video.canPlayType('video/OGG')", true);
12                 testExpected("video.canPlayType('video/ogg') === video.canPlayType('VIDEO/ogg')", true);
13                 testExpected("video.canPlayType('video/webm') === video.canPlayType('video/WEBM')", true);
14                 testExpected("video.canPlayType('video/webm') === video.canPlayType('VIDEO/webm')", true);
15
16                 endTest();
17             }
18         </script>
19     </head>
20     <body onload="start()">
21         <video controls></video>
22         <p>Test HTMLMediaElement <em>canPlayType()</em> method.</p>
23     </body>
24 </html>