mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Tests/LibGfx: Add some ICC coverage for the JPEG2000 loader
This commit is contained in:
parent
578f301017
commit
3f740fc727
Notes:
sideshowbarker
2024-07-17 06:00:02 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/3f740fc727 Pull-request: https://github.com/SerenityOS/serenity/pull/23770
1 changed files with 4 additions and 0 deletions
|
@ -578,6 +578,10 @@ TEST_CASE(test_jpeg2000_simple)
|
|||
auto plugin_decoder = TRY_OR_FAIL(Gfx::JPEG2000ImageDecoderPlugin::create(file->bytes()));
|
||||
|
||||
EXPECT_EQ(plugin_decoder->size(), Gfx::IntSize(119, 101));
|
||||
|
||||
auto icc_bytes = MUST(plugin_decoder->icc_data());
|
||||
EXPECT(icc_bytes.has_value());
|
||||
EXPECT_EQ(icc_bytes->size(), 3144u);
|
||||
}
|
||||
|
||||
TEST_CASE(test_pam_rgb)
|
||||
|
|
Loading…
Reference in a new issue