diff --git a/Tests/LibGfx/TestImageDecoder.cpp b/Tests/LibGfx/TestImageDecoder.cpp index a668175280..e2e52751b6 100644 --- a/Tests/LibGfx/TestImageDecoder.cpp +++ b/Tests/LibGfx/TestImageDecoder.cpp @@ -565,10 +565,12 @@ TEST_CASE(test_everything_tvg) TEST_CASE(test_jxl_modular_simple_tree_upsample2_10bits) { - - auto file = MUST(Core::MappedFile::map(TEST_INPUT("jxl/modular_simple_tree_upsample2_10bits.jxl"sv))); + auto file = MUST(Core::MappedFile::map(TEST_INPUT("jxl/modular_simple_tree_upsample2_10bits_rct.jxl"sv))); EXPECT(Gfx::JPEGXLImageDecoderPlugin::sniff(file->bytes())); auto plugin_decoder = MUST(Gfx::JPEGXLImageDecoderPlugin::create(file->bytes())); expect_single_frame_of_size(*plugin_decoder, { 128, 128 }); + + auto frame = MUST(plugin_decoder->frame(0)); + EXPECT_EQ(frame.image->get_pixel(42, 57), Gfx::Color::from_string("#4c0072"sv)); } diff --git a/Tests/LibGfx/test-inputs/jxl/modular_simple_tree_upsample2_10bits.jxl b/Tests/LibGfx/test-inputs/jxl/modular_simple_tree_upsample2_10bits.jxl deleted file mode 100644 index 291b1385fe..0000000000 Binary files a/Tests/LibGfx/test-inputs/jxl/modular_simple_tree_upsample2_10bits.jxl and /dev/null differ diff --git a/Tests/LibGfx/test-inputs/jxl/modular_simple_tree_upsample2_10bits_rct.jxl b/Tests/LibGfx/test-inputs/jxl/modular_simple_tree_upsample2_10bits_rct.jxl new file mode 100644 index 0000000000..79239e6400 Binary files /dev/null and b/Tests/LibGfx/test-inputs/jxl/modular_simple_tree_upsample2_10bits_rct.jxl differ