Tests: Copy webp ICC test inputs into test-inputs/icc

Two files are used both as test inputs for the webp decoder test and
for the icc profile test.

Use redundant copies of these two files for the two usecases, since
different parts of the files are used in both tests (and we could
remove the unneeded parts later).
This commit is contained in:
Nico Weber 2023-06-18 18:40:50 -04:00 committed by Tim Flynn
parent 1ea99097aa
commit df0a82668b
Notes: sideshowbarker 2024-07-17 05:41:34 +09:00
3 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ TEST_CASE(jpg)
TEST_CASE(webp_extended_lossless)
{
auto file = MUST(Core::MappedFile::map(TEST_INPUT("webp/extended-lossless.webp"sv)));
auto file = MUST(Core::MappedFile::map(TEST_INPUT("icc/extended-lossless.webp"sv)));
auto webp = MUST(Gfx::WebPImageDecoderPlugin::create(file->bytes()));
MUST(webp->initialize());
auto icc_bytes = MUST(webp->icc_data());
@ -58,7 +58,7 @@ TEST_CASE(webp_extended_lossless)
TEST_CASE(webp_extended_lossy)
{
auto file = MUST(Core::MappedFile::map(TEST_INPUT("webp/extended-lossy.webp"sv)));
auto file = MUST(Core::MappedFile::map(TEST_INPUT("icc/extended-lossy.webp"sv)));
auto webp = MUST(Gfx::WebPImageDecoderPlugin::create(file->bytes()));
MUST(webp->initialize());
auto icc_bytes = MUST(webp->icc_data());

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB