mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:04:59 +00:00
headless-browser: Run .svg
dump tests
Previously, the check for `.html` meant that `.svg` tests were excluded. This led to a few `.svg` with missing or bit-rotted expectations, which have now been added/updated.
This commit is contained in:
parent
012cb7f71e
commit
2ede299b4a
7 changed files with 54 additions and 29 deletions
|
@ -490,7 +490,7 @@ static ErrorOr<void> collect_dump_tests(Vector<Test>& tests, StringView path, St
|
|||
TRY(collect_dump_tests(tests, path, TRY(String::formatted("{}/{}", trail, name)), mode));
|
||||
continue;
|
||||
}
|
||||
if (!name.ends_with(".html"sv))
|
||||
if (!name.ends_with(".html"sv) && !name.ends_with(".svg"sv))
|
||||
continue;
|
||||
auto basename = LexicalPath::title(name);
|
||||
auto expectation_path = TRY(String::formatted("{}/expected/{}/{}.txt", path, trail, basename));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue