OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
| 4 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 5 (Please avoid writing new tests using video-test.js) --> |
4 <script src="video-test.js"></script> | 6 <script src="video-test.js"></script> |
5 <script> | 7 <script> |
6 function start() { | 8 function start() { |
7 video = mediaElement = document.getElementsByTagName('video')[0]
; | 9 video = mediaElement = document.getElementsByTagName('video')[0]
; |
8 | 10 |
9 testExpected("video.canPlayType('audio/webm')", "maybe"); | 11 testExpected("video.canPlayType('audio/webm')", "maybe"); |
10 testExpected("video.canPlayType('video/webm')", "maybe"); | 12 testExpected("video.canPlayType('video/webm')", "maybe"); |
11 | 13 |
12 testExpected("video.canPlayType('audio/webm; codecs=vorbis')", "
probably"); | 14 testExpected("video.canPlayType('audio/webm; codecs=vorbis')", "
probably"); |
13 testExpected("video.canPlayType('video/webm; codecs=vp8,vorbis')
", "probably"); | 15 testExpected("video.canPlayType('video/webm; codecs=vp8,vorbis')
", "probably"); |
(...skipping 17 matching lines...) Expand all Loading... |
31 endTest(); | 33 endTest(); |
32 } | 34 } |
33 </script> | 35 </script> |
34 </head> | 36 </head> |
35 <body onload="start()"> | 37 <body onload="start()"> |
36 <video controls></video> | 38 <video controls></video> |
37 <p>Test HTMLMediaElement <em>canPlayType()</em> method for webm media co
ntainers.</p> | 39 <p>Test HTMLMediaElement <em>canPlayType()</em> method for webm media co
ntainers.</p> |
38 <p>These tests may be expected to fail if the WebKit port does not suppo
rt the format.</p> | 40 <p>These tests may be expected to fail if the WebKit port does not suppo
rt the format.</p> |
39 </body> | 41 </body> |
40 </html> | 42 </html> |
OLD | NEW |