blob: b80b1e982263695e0a0ce371dc653b5d00d94889 [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/mp4; codecs="avc1.42E01E, mp4a.40.2"'),
v.canPlayType('video/mp4; codecs="mp4a.40.2, avc1.42E01E"'),
"order of codecs parameters should have no effect");
});
</script>
</body>
</html>