Avoid dangling reference output for HTML tests (#6711)

This commit is contained in:
Laurenz 2025-08-06 15:31:26 +02:00 committed by GitHub
parent 298c293181
commit f38a2e9b9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 1 additions and 33 deletions

View File

@ -1,11 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<p>When you said that “he surely meant that she intended to say “Im sorry””, I was quite confused.</p>
<p><span style="display: inline-block;">box</span></p>
</body>
</html>

View File

@ -1,11 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<h1>A cool title</h1>
<h2>Some level one heading</h2>
</body>
</html>

View File

@ -1,10 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<h1>Some Title</h1>
</body>
</html>

View File

@ -173,7 +173,7 @@ impl Collector {
for entry in walkdir::WalkDir::new(crate::REF_PATH).sort_by_file_name() {
let entry = entry.unwrap();
let path = entry.path();
if path.extension().is_none_or(|ext| ext != "png") {
if path.extension().is_none_or(|ext| ext != "png" && ext != "html") {
continue;
}