mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 00:56:39 +00:00
TestImageWriter: Add a QOI roundtrip test
This commit is contained in:
parent
83bdc9c831
commit
9384f118d2
Notes:
sideshowbarker
2024-07-17 06:46:15 +09:00
Author: https://github.com/nico
Commit: 9384f118d2
Pull-request: https://github.com/SerenityOS/serenity/pull/24245
Reviewed-by: https://github.com/LucasChollet ✅
1 changed files with 8 additions and 0 deletions
|
@ -10,6 +10,8 @@
|
|||
#include <LibGfx/ImageFormats/BMPWriter.h>
|
||||
#include <LibGfx/ImageFormats/PNGLoader.h>
|
||||
#include <LibGfx/ImageFormats/PNGWriter.h>
|
||||
#include <LibGfx/ImageFormats/QOILoader.h>
|
||||
#include <LibGfx/ImageFormats/QOIWriter.h>
|
||||
#include <LibGfx/ImageFormats/WebPLoader.h>
|
||||
#include <LibGfx/ImageFormats/WebPWriter.h>
|
||||
#include <LibTest/TestCase.h>
|
||||
|
@ -93,6 +95,12 @@ TEST_CASE(test_png)
|
|||
TRY_OR_FAIL((test_roundtrip<Gfx::PNGWriter, Gfx::PNGImageDecoderPlugin>(TRY_OR_FAIL(create_test_rgba_bitmap()))));
|
||||
}
|
||||
|
||||
TEST_CASE(test_qoi)
|
||||
{
|
||||
TRY_OR_FAIL((test_roundtrip<Gfx::QOIWriter, Gfx::QOIImageDecoderPlugin>(TRY_OR_FAIL(create_test_rgb_bitmap()))));
|
||||
TRY_OR_FAIL((test_roundtrip<Gfx::QOIWriter, Gfx::QOIImageDecoderPlugin>(TRY_OR_FAIL(create_test_rgba_bitmap()))));
|
||||
}
|
||||
|
||||
TEST_CASE(test_webp)
|
||||
{
|
||||
TRY_OR_FAIL((test_roundtrip<Gfx::WebPWriter, Gfx::WebPImageDecoderPlugin>(TRY_OR_FAIL(create_test_rgb_bitmap()))));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue