mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
test-web: Report which file has missing match/mismatch metadata
This makes it easier to figure out what's causing the assertion failure.
This commit is contained in:
parent
0e8f3a4648
commit
eea1d4e1d2
Notes:
github-actions[bot]
2025-11-20 15:04:01 +00:00
Author: https://github.com/AtkinsSJ
Commit: eea1d4e1d2
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6855
Reviewed-by: https://github.com/gmta ✅
1 changed files with 4 additions and 1 deletions
|
|
@ -438,7 +438,10 @@ static void run_ref_test(TestWebView& view, Test& test, URL::URL const& url, int
|
|||
|
||||
auto match_references = metadata_object.get_array("match_references"sv);
|
||||
auto mismatch_references = metadata_object.get_array("mismatch_references"sv);
|
||||
VERIFY(!match_references->is_empty() || !mismatch_references->is_empty());
|
||||
if (match_references->is_empty() && mismatch_references->is_empty()) {
|
||||
dbgln("No match or mismatch references in `{}`! Metadata: {}", view.url(), metadata_object.serialized());
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
// Read fuzzy configurations.
|
||||
test.fuzzy_matches.clear_with_capacity();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue