Skip to content

Commit 8e669ed

Browse files
committed
Bug 1997997 - add test for 10/12-bit VP9 video. r=media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D271672
1 parent b34e51f commit 8e669ed

File tree

6 files changed

+41
-30
lines changed

6 files changed

+41
-30
lines changed

dom/media/test/mochitest_compat.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,10 @@ support-files = [
694694
"video-overhang.ogg^headers^",
695695
"vp9-superframes.webm",
696696
"vp9-superframes.webm^headers^",
697+
"vp9-yuv420p10.webm",
698+
"vp9-yuv420p10.webm^headers^",
699+
"vp9-yuv420p12.webm",
700+
"vp9-yuv420p12.webm^headers^",
697701
"vp9.webm",
698702
"vp9.webm^headers^",
699703
"vp9-short.webm",
@@ -766,8 +770,6 @@ support-files = [
766770
["test_audioDocumentTitle.html"]
767771
skip-if = ["true"] # bug 475110 - disabled since we don't play Wave files standalone
768772

769-
["test_av1_high_professional_profiles.html"]
770-
771773
["test_buffered.html"]
772774

773775
["test_bug1431810_opus_downmix_to_mono.html"]
@@ -896,6 +898,8 @@ skip-if = ["os == 'win' && os_version == '11.26100' && arch == 'x86_64' && debug
896898

897899
["test_no_load_event.html"]
898900

901+
["test_non_8bit_video.html"]
902+
899903
["test_not_reset_playbackRate_when_removing_nonloaded_media_from_document.html"]
900904

901905
["test_paused.html"]

dom/media/test/test_av1_high_professional_profiles.html

Lines changed: 0 additions & 28 deletions
This file was deleted.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>Test 10/12-bit video files</title>
5+
<script src="/tests/SimpleTest/SimpleTest.js"></script>
6+
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
7+
<script type="application/javascript">
8+
9+
/** This test checks if 10- and 12-bit video plays. */
10+
const videos = ["av1-yuv444p10.webm", "av1-yuv422p10.webm", "av1-yuv444p12.webm",
11+
"vp9-yuv420p10.webm"];
12+
// Windows HW decoder doesn't support 12-bit VP9. TODO: fallback to SW decoder.
13+
if (SpecialPowers.Services.appinfo.OS != "WINNT") {
14+
videos.push("vp9-yuv420p12.webm");
15+
}
16+
add_task(async function testPlayAll() {
17+
await Promise.all(videos.map(
18+
(f) => {
19+
let v = document.createElement("video");
20+
document.body.appendChild(v);
21+
v.src = f;
22+
return v;
23+
}).map(
24+
(v) => v.play())).then(
25+
() => ok(true, "All video played."),
26+
(e) => ok(false, "Play video error: " + e));
27+
});
28+
29+
</script>
30+
</head>
31+
<body>
32+
</body>
33+
</html>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Cache-Control: no-store

dom/media/test/vp9-yuv420p12.webm

23.4 KB
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Cache-Control: no-store

0 commit comments

Comments
 (0)