mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
Test: Enable text/html tests for MimeType sniffing by filenames
This commit is contained in:
parent
cdb623b663
commit
92b69e7885
Notes:
github-actions[bot]
2025-06-26 00:50:49 +00:00
Author: https://github.com/rcorsi
Commit: 92b69e7885
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4906
Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 6 additions and 4 deletions
|
@ -24,8 +24,11 @@ auto text_plain_filenames = Vector {
|
|||
".shellrc"sv,
|
||||
"CMakeList.txt"sv,
|
||||
};
|
||||
// FIXME: fails because .xht extension is in MimeType text/html and application/xhtml+xml
|
||||
// auto html_filenames = Vector {"about.html"sv, "send-data-blob.htm"sv, "content.xht"sv, "dir/settings.html"sv,};
|
||||
auto html_filenames = Vector {
|
||||
"about.html"sv,
|
||||
"send-data-blob.htm"sv,
|
||||
"dir/settings.html"sv,
|
||||
};
|
||||
auto xhtml_filenames = Vector {
|
||||
"about.xhtml"sv,
|
||||
"content.xht"sv,
|
||||
|
@ -46,8 +49,7 @@ auto shell_filenames = Vector {
|
|||
TEST_CASE(various_types_guessed)
|
||||
{
|
||||
check_filename_mimetype(text_plain_filenames, "text/plain"sv);
|
||||
// FIXME: fails because .xht extension is in MimeType text/html and application/xhtml+xml
|
||||
// check_filename_mimetype(html_filenames, "text/html"sv);
|
||||
check_filename_mimetype(html_filenames, "text/html"sv);
|
||||
check_filename_mimetype(xhtml_filenames, "application/xhtml+xml"sv);
|
||||
check_filename_mimetype(gzip_filenames, "application/gzip"sv);
|
||||
check_filename_mimetype(markdown_filenames, "text/markdown"sv);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue