Преглед изворни кода

Tests/JBIG2: Remove test_jbig2_size

It's redundant with test_jbig2_decode nowadays.
Nico Weber пре 1 година
родитељ
комит
200e36aad3
1 измењених фајлова са 0 додато и 8 уклоњено
  1. 0 8
      Tests/LibGfx/TestImageDecoder.cpp

+ 0 - 8
Tests/LibGfx/TestImageDecoder.cpp

@@ -318,14 +318,6 @@ TEST_CASE(test_ilbm_malformed_frame)
     }
     }
 }
 }
 
 
-TEST_CASE(test_jbig2_size)
-{
-    auto file = TRY_OR_FAIL(Core::MappedFile::map(TEST_INPUT("jbig2/bitmap.jbig2"sv)));
-    EXPECT(Gfx::JBIG2ImageDecoderPlugin::sniff(file->bytes()));
-    auto plugin_decoder = TRY_OR_FAIL(Gfx::JBIG2ImageDecoderPlugin::create(file->bytes()));
-    EXPECT_EQ(plugin_decoder->size(), Gfx::IntSize(399, 400));
-}
-
 TEST_CASE(test_jbig2_black_47x23)
 TEST_CASE(test_jbig2_black_47x23)
 {
 {
     auto file = TRY_OR_FAIL(Core::MappedFile::map(TEST_INPUT("jbig2/black_47x23.jbig2"sv)));
     auto file = TRY_OR_FAIL(Core::MappedFile::map(TEST_INPUT("jbig2/black_47x23.jbig2"sv)));