blob: a17bdb183cc38cb168ed13ed4e3f71dd092f4655 [file] [log] [blame]
<!doctype html>
<html>
<head>
<title>video.canPlayType() - codecs parameter logic</title>
<script src="../../w3cwrapper.js"></script>
</head>
<body>
<p><a href="http://dev.w3.org/html5/spec/Overview.html#mime-types">spec reference</a></p>
<video id="v">
</video>
<div id="log"></div>
<script>
test(function() {
var v = document.getElementById("v");
if (v.canPlayType('video/ogg; codecs="theora, vorbis"') == "probably") {
assert_equals(
v.canPlayType('video/ogg; codecs="theora, vorbis"'),
v.canPlayType('video/ogg; codecs="vorbis"'),
"ability to play two codecs implies the ability to play one");
}
});
</script>
</body>
</html>