summaryrefslogtreecommitdiff
path: root/Tests/LibGfx
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2023-01-20 18:40:28 +0200
committerLinus Groh <mail@linusgroh.de>2023-01-20 17:05:09 +0000
commitda525ccc433284013e81e09d8fe1b76183e3db4a (patch)
treea3755a924f64c7a8737490a6ce72e628157905be /Tests/LibGfx
parent87f0e835eb7fee2af95a365f29113f315571a755 (diff)
downloadserenity-da525ccc433284013e81e09d8fe1b76183e3db4a.zip
Tests/LibGfx: Fix test_not_ico test case
We should expect the sniffing method and the initialize method to fail because this test case is testing that the ICO image decoder should not decode random data within it.
Diffstat (limited to 'Tests/LibGfx')
-rw-r--r--Tests/LibGfx/TestImageDecoder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/LibGfx/TestImageDecoder.cpp b/Tests/LibGfx/TestImageDecoder.cpp
index 16ccec27ba..47e66ebff5 100644
--- a/Tests/LibGfx/TestImageDecoder.cpp
+++ b/Tests/LibGfx/TestImageDecoder.cpp
@@ -58,11 +58,11 @@ TEST_CASE(test_gif)
TEST_CASE(test_not_ico)
{
auto file = Core::MappedFile::map("/res/graphics/buggie.png"sv).release_value();
- EXPECT_EQ(MUST(Gfx::ICOImageDecoderPlugin::sniff({ (u8 const*)file->data(), file->size() })), true);
+ EXPECT_EQ(MUST(Gfx::ICOImageDecoderPlugin::sniff({ (u8 const*)file->data(), file->size() })), false);
auto plugin_decoder_or_error = Gfx::ICOImageDecoderPlugin::create({ (u8 const*)file->data(), file->size() });
EXPECT(!plugin_decoder_or_error.is_error());
auto plugin_decoder = plugin_decoder_or_error.release_value();
- EXPECT_EQ(plugin_decoder->initialize(), true);
+ EXPECT_EQ(plugin_decoder->initialize(), false);
EXPECT(plugin_decoder->frame_count());
EXPECT(!plugin_decoder->is_animated());