|
@@ -557,7 +557,7 @@ TEST_CASE(test_ppm)
|
|
|
TEST_CASE(test_targa_bottom_left)
|
|
|
{
|
|
|
auto file = TRY_OR_FAIL(Core::MappedFile::map(TEST_INPUT("tga/buggie-bottom-left-uncompressed.tga"sv)));
|
|
|
- EXPECT(TRY_OR_FAIL(Gfx::TGAImageDecoderPlugin::validate_before_create(file->bytes())));
|
|
|
+ EXPECT(Gfx::TGAImageDecoderPlugin::validate_before_create(file->bytes()));
|
|
|
auto plugin_decoder = TRY_OR_FAIL(Gfx::TGAImageDecoderPlugin::create(file->bytes()));
|
|
|
|
|
|
TRY_OR_FAIL(expect_single_frame(*plugin_decoder));
|
|
@@ -566,7 +566,7 @@ TEST_CASE(test_targa_bottom_left)
|
|
|
TEST_CASE(test_targa_top_left)
|
|
|
{
|
|
|
auto file = TRY_OR_FAIL(Core::MappedFile::map(TEST_INPUT("tga/buggie-top-left-uncompressed.tga"sv)));
|
|
|
- EXPECT(TRY_OR_FAIL(Gfx::TGAImageDecoderPlugin::validate_before_create(file->bytes())));
|
|
|
+ EXPECT(Gfx::TGAImageDecoderPlugin::validate_before_create(file->bytes()));
|
|
|
auto plugin_decoder = TRY_OR_FAIL(Gfx::TGAImageDecoderPlugin::create(file->bytes()));
|
|
|
|
|
|
TRY_OR_FAIL(expect_single_frame(*plugin_decoder));
|
|
@@ -575,7 +575,7 @@ TEST_CASE(test_targa_top_left)
|
|
|
TEST_CASE(test_targa_bottom_left_compressed)
|
|
|
{
|
|
|
auto file = TRY_OR_FAIL(Core::MappedFile::map(TEST_INPUT("tga/buggie-bottom-left-compressed.tga"sv)));
|
|
|
- EXPECT(TRY_OR_FAIL(Gfx::TGAImageDecoderPlugin::validate_before_create(file->bytes())));
|
|
|
+ EXPECT(Gfx::TGAImageDecoderPlugin::validate_before_create(file->bytes()));
|
|
|
auto plugin_decoder = TRY_OR_FAIL(Gfx::TGAImageDecoderPlugin::create(file->bytes()));
|
|
|
|
|
|
TRY_OR_FAIL(expect_single_frame(*plugin_decoder));
|
|
@@ -584,7 +584,7 @@ TEST_CASE(test_targa_bottom_left_compressed)
|
|
|
TEST_CASE(test_targa_top_left_compressed)
|
|
|
{
|
|
|
auto file = TRY_OR_FAIL(Core::MappedFile::map(TEST_INPUT("tga/buggie-top-left-compressed.tga"sv)));
|
|
|
- EXPECT(TRY_OR_FAIL(Gfx::TGAImageDecoderPlugin::validate_before_create(file->bytes())));
|
|
|
+ EXPECT(Gfx::TGAImageDecoderPlugin::validate_before_create(file->bytes()));
|
|
|
auto plugin_decoder = TRY_OR_FAIL(Gfx::TGAImageDecoderPlugin::create(file->bytes()));
|
|
|
|
|
|
TRY_OR_FAIL(expect_single_frame(*plugin_decoder));
|