Update web-platform-tests to revision b'ee6da9d71d0268d7fdb04e8e5b26858f46ee0cc4'

This commit is contained in:
WPT Sync Bot 2022-01-20 04:38:55 +00:00 committed by cybai
parent 4401622eb1
commit b77ad115f6
16832 changed files with 270819 additions and 87621 deletions

View file

@ -73,7 +73,8 @@ promise_test(t => {
promise_test(t => {
return testFourColorsDecode(
'four-colors-full-range-bt2020-pq-444-10bpc.avif', 'image/avif');
'four-colors-full-range-bt2020-pq-444-10bpc.avif', 'image/avif',
{ tolerance: 3 });
}, 'Test high bit depth HDR AVIF image decoding.');
promise_test(t => {
@ -97,31 +98,31 @@ promise_test(t => {
promise_test(t => {
return testFourColorsYuvDecode(
'four-colors-limited-range-420-8bpc.jpg', 'image/jpeg',
{yuvFormat: 'I420', tolerance: 1});
{yuvFormat: 'I420', tolerance: 3});
}, 'Test JPEG image YUV 4:2:0 decoding.');
promise_test(t => {
return testFourColorsYuvDecode(
'four-colors-limited-range-420-8bpc.avif', 'image/avif',
{yuvFormat: 'I420', tolerance: 1});
{yuvFormat: 'I420', tolerance: 3});
}, 'Test AVIF image YUV 4:2:0 decoding.');
promise_test(t => {
return testFourColorsYuvDecode(
'four-colors-limited-range-422-8bpc.avif', 'image/avif',
{yuvFormat: 'I422', tolerance: 1});
{yuvFormat: 'I422', tolerance: 3});
}, 'Test AVIF image YUV 4:2:2 decoding.');
promise_test(t => {
return testFourColorsYuvDecode(
'four-colors-limited-range-444-8bpc.avif', 'image/avif',
{yuvFormat: 'I444', tolerance: 1});
{yuvFormat: 'I444', tolerance: 3});
}, 'Test AVIF image YUV 4:4:4 decoding.');
promise_test(t => {
return testFourColorsYuvDecode(
'four-colors-limited-range-420-8bpc.webp', 'image/webp',
{yuvFormat: 'I420', tolerance: 1});
{yuvFormat: 'I420', tolerance: 3});
}, 'Test WEBP image YUV 4:2:0 decoding.');
promise_test(t => {
@ -371,8 +372,9 @@ promise_test(async t => {
})
.then(_ => {
// Ensure feeding the source after closing doesn't crash.
source.addFrame();
return promise_rejects_dom(t, 'InvalidStateError', decoder.decode());
assert_throws_js(TypeError, () => {
source.addFrame();
});
});
}, 'Test ReadableStream of gif');