Skip to content

Commit 1a24cc9

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 392dd46 commit 1a24cc9

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
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 renamed to dom/media/test/test_non_8bit_video.html

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<title>Test High and Professional profile AV1 video files</title>
4+
<title>Test 10/12-bit video files</title>
55
<script src="/tests/SimpleTest/SimpleTest.js"></script>
66
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
77
<script type="application/javascript">
88

9-
/** This test checks if 10- and 12-bit AV1 video plays. */
10-
const av1Files = ["av1-yuv444p10.webm", "av1-yuv422p10.webm", "av1-yuv444p12.webm"];
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", "vp9-yuv420p12.webm"];
1112
add_task(async function testPlayAll() {
12-
await Promise.all(av1Files.map(
13+
await Promise.all(videos.map(
1314
(f) => {
1415
let v = document.createElement("video");
1516
document.body.appendChild(v);
1617
v.src = f;
1718
return v;
1819
}).map(
1920
(v) => v.play())).then(
20-
() => ok(true, "All AV1 video played."),
21-
(e) => ok(false, "Play AV1 video error: " + e));
21+
() => ok(true, "All video played."),
22+
(e) => ok(false, "Play video error: " + e));
2223
});
2324

2425
</script>
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)