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 test() | 8 function test() |
7 { | 9 { |
8 testExpected("mediaElement.canPlayType('APPLICATION/octet-stream
')", ""); | 10 testExpected("mediaElement.canPlayType('APPLICATION/octet-stream
')", ""); |
9 testExpected("mediaElement.canPlayType('application/octet-stream
;codecs=theora')", ""); | 11 testExpected("mediaElement.canPlayType('application/octet-stream
;codecs=theora')", ""); |
10 testExpected("mediaElement.canPlayType('application/octet-stream
;codecs=mp4')", ""); | 12 testExpected("mediaElement.canPlayType('application/octet-stream
;codecs=mp4')", ""); |
11 } | 13 } |
12 | 14 |
13 function start() | 15 function start() |
14 { | 16 { |
15 consoleWrite("<em>++ Test with <video> element.</em>"); | 17 consoleWrite("<em>++ Test with <video> element.</em>"); |
16 mediaElement = document.getElementsByTagName('video')[0]; | 18 mediaElement = document.getElementsByTagName('video')[0]; |
17 test(); | 19 test(); |
18 | 20 |
19 consoleWrite("<br><em>++ Test with <audio> element.</em>")
; | 21 consoleWrite("<br><em>++ Test with <audio> element.</em>")
; |
20 mediaElement = new Audio(); | 22 mediaElement = new Audio(); |
21 test(); | 23 test(); |
22 | 24 |
23 endTest(); | 25 endTest(); |
24 } | 26 } |
25 </script> | 27 </script> |
26 </head> | 28 </head> |
27 <body onload="start()"> | 29 <body onload="start()"> |
28 <video controls></video> | 30 <video controls></video> |
29 <p>Test HTMLMediaElement <em>canPlayType()</em> method with "application
/octet-stream".</p> | 31 <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 "appl
ication/octet-stream".</p> | 32 <p>These tests should always pass as no WebKit port should support "appl
ication/octet-stream".</p> |
31 </body> | 33 </body> |
32 </html> | 34 </html> |
OLD | NEW |