mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 16:28:54 +00:00
Tests: Add tests for some common image types in TestLibCoreMimeType
This commit is contained in:
parent
b8f95a091c
commit
41eaf0d966
Notes:
github-actions[bot]
2025-08-22 12:04:32 +00:00
Author: https://github.com/zacoons
Commit: 41eaf0d966
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5938
Reviewed-by: https://github.com/Zaggy1024 ✅
Reviewed-by: https://github.com/trflynn89
1 changed files with 6 additions and 0 deletions
|
@ -54,4 +54,10 @@ TEST_CASE(various_types_guessed)
|
||||||
check_filename_mimetype(gzip_filenames, "application/gzip"sv);
|
check_filename_mimetype(gzip_filenames, "application/gzip"sv);
|
||||||
check_filename_mimetype(markdown_filenames, "text/markdown"sv);
|
check_filename_mimetype(markdown_filenames, "text/markdown"sv);
|
||||||
check_filename_mimetype(shell_filenames, "text/x-shellscript"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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue