Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<head>
<title>Test High and Professional profile AV1 video files</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
<script type="application/javascript">
/** This test checks if 10- and 12-bit AV1 video plays. */
const av1Files = ["av1-yuv444p10.webm", "av1-yuv422p10.webm", "av1-yuv444p12.webm"];
add_task(async function testPlayAll() {
await Promise.all(av1Files.map(
(f) => {
let v = document.createElement("video");
document.body.appendChild(v);
v.src = f;
return v;
}).map(
(v) => v.play())).then(
() => ok(true, "All AV1 video played."),
(e) => ok(false, "Play AV1 video error: " + e));
});
</script>
</head>
<body>
</body>
</html>