test-web: Treat files in images directories as resources for WPT tests

This commit is contained in:
Tim Ledbetter 2025-07-20 04:19:43 +01:00 committed by Shannon Booth
parent 4a223ad085
commit bd83f5bde6

View File

@ -605,6 +605,7 @@ static ErrorOr<int> run_tests(Core::AnonymousBuffer const& theme, Web::DevicePix
"*/wpt-import/*/support/*"sv,
"*/wpt-import/*/resources/*"sv,
"*/wpt-import/common/*"sv,
"*/wpt-import/images/*"sv,
};
bool is_support_file = any_of(support_file_patterns, [&](auto pattern) { return test.input_path.matches(pattern); });
bool match_glob = any_of(app.test_globs, [&](auto const& glob) { return test.relative_path.matches(glob, CaseSensitivity::CaseSensitive); });