1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:17:44 +00:00

Tests: Move icc test inputs into icc/ subfolder

This commit is contained in:
Nico Weber 2023-06-18 18:39:37 -04:00 committed by Tim Flynn
parent c0fe9cee97
commit 1ea99097aa
4 changed files with 5 additions and 5 deletions

View file

@ -22,7 +22,7 @@
TEST_CASE(png) TEST_CASE(png)
{ {
auto file = MUST(Core::MappedFile::map(TEST_INPUT("icc-v2.png"sv))); auto file = MUST(Core::MappedFile::map(TEST_INPUT("icc/icc-v2.png"sv)));
auto png = MUST(Gfx::PNGImageDecoderPlugin::create(file->bytes())); auto png = MUST(Gfx::PNGImageDecoderPlugin::create(file->bytes()));
MUST(png->initialize()); MUST(png->initialize());
auto icc_bytes = MUST(png->icc_data()); auto icc_bytes = MUST(png->icc_data());
@ -34,7 +34,7 @@ TEST_CASE(png)
TEST_CASE(jpg) TEST_CASE(jpg)
{ {
auto file = MUST(Core::MappedFile::map(TEST_INPUT("icc-v4.jpg"sv))); auto file = MUST(Core::MappedFile::map(TEST_INPUT("icc/icc-v4.jpg"sv)));
auto jpg = MUST(Gfx::JPEGImageDecoderPlugin::create(file->bytes())); auto jpg = MUST(Gfx::JPEGImageDecoderPlugin::create(file->bytes()));
MUST(jpg->initialize()); MUST(jpg->initialize());
auto icc_bytes = MUST(jpg->icc_data()); auto icc_bytes = MUST(jpg->icc_data());
@ -46,7 +46,7 @@ TEST_CASE(jpg)
TEST_CASE(webp_extended_lossless) TEST_CASE(webp_extended_lossless)
{ {
auto file = MUST(Core::MappedFile::map(TEST_INPUT("extended-lossless.webp"sv))); auto file = MUST(Core::MappedFile::map(TEST_INPUT("webp/extended-lossless.webp"sv)));
auto webp = MUST(Gfx::WebPImageDecoderPlugin::create(file->bytes())); auto webp = MUST(Gfx::WebPImageDecoderPlugin::create(file->bytes()));
MUST(webp->initialize()); MUST(webp->initialize());
auto icc_bytes = MUST(webp->icc_data()); auto icc_bytes = MUST(webp->icc_data());
@ -58,7 +58,7 @@ TEST_CASE(webp_extended_lossless)
TEST_CASE(webp_extended_lossy) TEST_CASE(webp_extended_lossy)
{ {
auto file = MUST(Core::MappedFile::map(TEST_INPUT("extended-lossy.webp"sv))); auto file = MUST(Core::MappedFile::map(TEST_INPUT("webp/extended-lossy.webp"sv)));
auto webp = MUST(Gfx::WebPImageDecoderPlugin::create(file->bytes())); auto webp = MUST(Gfx::WebPImageDecoderPlugin::create(file->bytes()));
MUST(webp->initialize()); MUST(webp->initialize());
auto icc_bytes = MUST(webp->icc_data()); auto icc_bytes = MUST(webp->icc_data());
@ -70,7 +70,7 @@ TEST_CASE(webp_extended_lossy)
TEST_CASE(serialize_icc) TEST_CASE(serialize_icc)
{ {
auto file = MUST(Core::MappedFile::map(TEST_INPUT("p3-v4.icc"sv))); auto file = MUST(Core::MappedFile::map(TEST_INPUT("icc/p3-v4.icc"sv)));
auto icc_profile = MUST(Gfx::ICC::Profile::try_load_from_externally_owned_memory(file->bytes())); auto icc_profile = MUST(Gfx::ICC::Profile::try_load_from_externally_owned_memory(file->bytes()));
EXPECT(icc_profile->is_v4()); EXPECT(icc_profile->is_v4());

View file

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Before After
Before After