From 41eaf0d9664a9475da3e028be87eb961f0c2f3a3 Mon Sep 17 00:00:00 2001 From: zac Date: Fri, 22 Aug 2025 09:07:24 +1000 Subject: [PATCH] Tests: Add tests for some common image types in TestLibCoreMimeType --- Tests/LibCore/TestLibCoreMimeType.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Tests/LibCore/TestLibCoreMimeType.cpp b/Tests/LibCore/TestLibCoreMimeType.cpp index 2591ce59d1c..263d6dc1493 100644 --- a/Tests/LibCore/TestLibCoreMimeType.cpp +++ b/Tests/LibCore/TestLibCoreMimeType.cpp @@ -54,4 +54,10 @@ TEST_CASE(various_types_guessed) check_filename_mimetype(gzip_filenames, "application/gzip"sv); check_filename_mimetype(markdown_filenames, "text/markdown"sv); check_filename_mimetype(shell_filenames, "text/x-shellscript"sv); + + // Images + check_filename_mimetype(Vector { "image.png"sv }, "image/png"sv); + check_filename_mimetype(Vector { "smiley.jpg"sv, "apple.jpeg"sv }, "image/jpeg"sv); + check_filename_mimetype(Vector { "cats.webp"sv }, "image/webp"sv); + check_filename_mimetype(Vector { "dogs.avif"sv }, "image/avif"sv); }