| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <title>Test HTMLMediaElement's "canPlayType" method for ogg media containers.</t
itle> | 2 <title>Test HTMLMediaElement's "canPlayType" method for ogg media containers.</t
itle> |
| 3 <script src="../resources/testharness.js"></script> | 3 <script src="../resources/testharness.js"></script> |
| 4 <script src="../resources/testharnessreport.js"></script> | 4 <script src="../resources/testharnessreport.js"></script> |
| 5 <video></video> | 5 <video></video> |
| 6 <script> | 6 <script> |
| 7 test(function() { | 7 test(function() { |
| 8 var video = document.querySelector("video"); | 8 var video = document.querySelector('video'); |
| 9 // These tests may be expected to fail if the platform does not support the
format. | 9 // These tests may be expected to fail if the platform does not support the
format. |
| 10 assert_equals(video.canPlayType("audio/ogg"), "maybe"); | 10 assert_equals(video.canPlayType('audio/ogg'), 'maybe'); |
| 11 assert_equals(video.canPlayType("video/ogg"), "maybe"); | 11 assert_equals(video.canPlayType('video/ogg'), 'maybe'); |
| 12 | 12 |
| 13 assert_equals(video.canPlayType("audio/ogg; codecs=vorbis"), "probably"); | 13 assert_equals(video.canPlayType('audio/ogg; codecs=vorbis'), 'probably'); |
| 14 assert_equals(video.canPlayType("audio/ogg; codecs=opus"), "probably"); | 14 assert_equals(video.canPlayType('audio/ogg; codecs=opus'), 'probably'); |
| 15 assert_equals(video.canPlayType("video/ogg; codecs=theora"), "probably"); | 15 assert_equals(video.canPlayType('video/ogg; codecs=theora'), 'probably'); |
| 16 assert_equals(video.canPlayType("video/ogg; codecs=theora,vorbis"), "probabl
y"); | 16 assert_equals(video.canPlayType('video/ogg; codecs="theora,vorbis"'), 'proba
bly'); |
| 17 }); | 17 }); |
| 18 </script> | 18 </script> |
| OLD | NEW |