headless-browser: Support running XHTML tests

This commit is contained in:
Shannon Booth 2024-11-02 02:57:24 +13:00 committed by Tim Flynn
parent 4dd912e686
commit fd32f17c56
Notes: github-actions[bot] 2024-11-01 18:03:14 +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))
if (!name.ends_with(".html"sv) && !name.ends_with(".svg"sv) && !name.ends_with(".xhtml"sv))
continue;
auto expectation_path = ByteString::formatted("{}/expected/{}/{}.txt", path, trail, LexicalPath::title(name));