| 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 | 4 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 |
| 5 (Please avoid writing new tests using video-test.js) --> | 5 (Please avoid writing new tests using video-test.js) --> |
| 6 <script src="video-test.js"></script> | 6 <script src="video-test.js"></script> |
| 7 <script> | 7 <script> |
| 8 function start() { | 8 function start() { |
| 9 video = mediaElement = document.getElementsByTagName('video')[0]
; | 9 video = mediaElement = document.getElementsByTagName('video')[0]
; |
| 10 | 10 |
| 11 testExpected("video.canPlayType('audio/webm')", "maybe"); | 11 testExpected("video.canPlayType('audio/webm')", "maybe"); |
| 12 testExpected("video.canPlayType('video/webm')", "maybe"); | 12 testExpected("video.canPlayType('video/webm')", "maybe"); |
| 13 | 13 |
| 14 testExpected("video.canPlayType('audio/webm; codecs=vorbis')", "
probably"); | 14 testExpected("video.canPlayType('audio/webm; codecs=vorbis')", "
probably"); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 33 endTest(); | 33 endTest(); |
| 34 } | 34 } |
| 35 </script> | 35 </script> |
| 36 </head> | 36 </head> |
| 37 <body onload="start()"> | 37 <body onload="start()"> |
| 38 <video controls></video> | 38 <video controls></video> |
| 39 <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> |
| 40 <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> |
| 41 </body> | 41 </body> |
| 42 </html> | 42 </html> |
| OLD | NEW |