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:
committed by
moz-wptsync-bot
parent
d11565a5dc
commit
3b355235da
@@ -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({
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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(_ => {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user