From f38a2e9b9d5d857d67d6f9f172faff53f83d465c Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 6 Aug 2025 15:31:26 +0200 Subject: [PATCH] Avoid dangling reference output for HTML tests (#6711) --- tests/ref/html/smartquotes-html.html | 11 ----------- tests/ref/html/title-and-heading.html | 11 ----------- tests/ref/html/title-basic.html | 10 ---------- tests/src/collect.rs | 2 +- 4 files changed, 1 insertion(+), 33 deletions(-) delete mode 100644 tests/ref/html/smartquotes-html.html delete mode 100644 tests/ref/html/title-and-heading.html delete mode 100644 tests/ref/html/title-basic.html diff --git a/tests/ref/html/smartquotes-html.html b/tests/ref/html/smartquotes-html.html deleted file mode 100644 index 7a9d083c6..000000000 --- a/tests/ref/html/smartquotes-html.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - -

When you said that “he surely meant that ‘she intended to say “I’m sorry”’”, I was quite confused.

-

box

- - diff --git a/tests/ref/html/title-and-heading.html b/tests/ref/html/title-and-heading.html deleted file mode 100644 index c09062ec3..000000000 --- a/tests/ref/html/title-and-heading.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - -

A cool title

-

Some level one heading

- - diff --git a/tests/ref/html/title-basic.html b/tests/ref/html/title-basic.html deleted file mode 100644 index c9995358e..000000000 --- a/tests/ref/html/title-basic.html +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - -

Some Title

- - diff --git a/tests/src/collect.rs b/tests/src/collect.rs index af03c72d4..e1274adb0 100644 --- a/tests/src/collect.rs +++ b/tests/src/collect.rs @@ -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; }