headless-browser: Support running tests with the ".xht" extension

This commit is contained in:
Tim Ledbetter 2024-11-05 18:00:43 +00:00 committed by Sam Atkins
parent 1389ae02be
commit 2681525534
Notes: github-actions[bot] 2024-11-07 12:03:34 +00:00

View file

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