Bug 1801147 [wpt PR 37008] - webcodec support tests should fail if we can't tell, a=testonly

Automatic update from web-platform-tests
webcodec support tests should fail if we can't tell

--

wpt-commits: 67eef80ad87e294d3d2378f4353ad004eb0ec6f1
wpt-pr: 37008
This commit is contained in:
Sam Sneddon
2022-11-20 16:12:09 +00:00
committed by moz-wptsync-bot
parent d11565a5dc
commit 3b355235da
5 changed files with 5 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ function testSharedArrayBufferDescription(t, useView) {
const data = testData;
// Don't run test if the codec is not supported.
assert_equals("function", typeof AudioDecoder.isConfigSupported);
let supported = false;
return AudioDecoder
.isConfigSupported({

View File

@@ -155,6 +155,7 @@ promise_setup(async () => {
}[location.search];
// Don't run any tests if the codec is not supported.
assert_equals("function", typeof AudioDecoder.isConfigSupported);
let supported = false;
try {
const support = await AudioDecoder.isConfigSupported({

View File

@@ -22,6 +22,7 @@ function testSharedArrayBufferDescription(t, useView) {
const data = testData;
// Don't run test if the codec is not supported.
assert_equals("function", typeof VideoDecoder.isConfigSupported);
let supported = false;
return VideoDecoder.isConfigSupported({codec: data.config.codec})
.catch(_ => {

View File

@@ -1,4 +1,5 @@
async function checkEncoderSupport(test, config) {
assert_equals("function", typeof VideoEncoder.isConfigSupported);
let supported = false;
try {
const support = await VideoEncoder.isConfigSupported(config);

View File

@@ -146,6 +146,7 @@ promise_setup(async () => {
}[location.search];
// Don't run any tests if the codec is not supported.
assert_equals("function", typeof VideoDecoder.isConfigSupported);
let supported = false;
try {
// TODO(sandersd): To properly support H.264 in AVC format, this should