headless-browser: Treat files ending in '.htm' as valid tests

This commit is contained in:
Tim Ledbetter 2024-11-21 16:59:24 +00:00 committed by Tim Flynn
parent 5d71da1d73
commit 2aee5d7f62
Notes: github-actions[bot] 2024-11-21 20:50:56 +00:00

View file

@ -70,7 +70,7 @@ static ErrorOr<void> collect_dump_tests(Vector<Test>& tests, StringView path, St
continue; continue;
} }
if (!name.ends_with(".html"sv) && !name.ends_with(".svg"sv) && !name.ends_with(".xhtml"sv) && !name.ends_with(".xht"sv)) if (!name.ends_with(".htm"sv) && !name.ends_with(".html"sv) && !name.ends_with(".svg"sv) && !name.ends_with(".xhtml"sv) && !name.ends_with(".xht"sv))
continue; continue;
auto expectation_path = ByteString::formatted("{}/expected/{}/{}.txt", path, trail, LexicalPath::title(name)); auto expectation_path = ByteString::formatted("{}/expected/{}/{}.txt", path, trail, LexicalPath::title(name));