mirror of
https://github.com/typst/typst
synced 2025-08-12 14:17:55 +08:00
Avoid dangling reference output for HTML tests (#6711)
This commit is contained in:
parent
298c293181
commit
f38a2e9b9d
@ -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 “I’m sorry”’”, I was quite confused.</p>
|
|
||||||
<p>‘<span style="display: inline-block;">box</span>’</p>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -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>
|
|
@ -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>
|
|
@ -173,7 +173,7 @@ impl Collector {
|
|||||||
for entry in walkdir::WalkDir::new(crate::REF_PATH).sort_by_file_name() {
|
for entry in walkdir::WalkDir::new(crate::REF_PATH).sort_by_file_name() {
|
||||||
let entry = entry.unwrap();
|
let entry = entry.unwrap();
|
||||||
let path = entry.path();
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user