blob: ecd3f46ddc08e5de28c6984d04edc55d244a3c64 [file] [log] [blame]
<!doctype html>
<html>
<head>
<title>video.canPlayType() - codecs parameter order</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");
assert_equals(
v.canPlayType('video/webm; codecs="vp8, BOGUS"'),
v.canPlayType('video/webm; codecs="BOGUS, vp8"'),
"order of codecs parameters should have no effect");
assert_equals(
v.canPlayType('video/webm; codecs="vp8, opus"'),
v.canPlayType('video/webm; codecs="opus, vp8"'),
"order of codecs parameters should have no effect");
});
</script>
</body>
</html>