mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 10:35:06 +00:00
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:
parent
1ea99097aa
commit
df0a82668b
3 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
|
BIN
Tests/LibGfx/test-inputs/icc/extended-lossless.webp
Normal file
BIN
Tests/LibGfx/test-inputs/icc/extended-lossless.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 29 KiB |
BIN
Tests/LibGfx/test-inputs/icc/extended-lossy.webp
Normal file
BIN
Tests/LibGfx/test-inputs/icc/extended-lossy.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
Loading…
Add table
Add a link
Reference in a new issue