mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
UI/Headless: Ignore more WPT support files
We now ignore files imported from WPT, if they are in the root `common` directory, or any directory named `resources`. This matches the behavior of the WPT test harness.
This commit is contained in:
parent
f8dacdaf50
commit
c55d40e84b
Notes:
github-actions[bot]
2024-12-29 01:21:54 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/c55d40e84bd Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3078 Reviewed-by: https://github.com/shannonbooth ✅
1 changed files with 6 additions and 1 deletions
|
@ -428,7 +428,12 @@ ErrorOr<void> run_tests(Core::AnonymousBuffer const& theme, Web::DevicePixelSize
|
|||
#endif
|
||||
|
||||
tests.remove_all_matching([&](auto const& test) {
|
||||
bool is_support_file = test.input_path.matches("*/wpt-import/*/support/*"sv);
|
||||
static constexpr Array support_file_patterns {
|
||||
"*/wpt-import/*/support/*"sv,
|
||||
"*/wpt-import/*/resources/*"sv,
|
||||
"*/wpt-import/common/*"sv,
|
||||
};
|
||||
bool is_support_file = any_of(support_file_patterns, [&](auto pattern) { return test.input_path.matches(pattern); });
|
||||
bool match_glob = test.input_path.matches(test_glob, CaseSensitivity::CaseSensitive);
|
||||
return is_support_file || !match_glob;
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue