Cover longtable row and rule rendering

This commit is contained in:
gloamxun committed 2026-10-19 23:29:47 +08:00
1 parent b599f92516
commit c3ae426a10
1 file changed
+20
+20
View File
@@ -1664,3 +1664,23 @@ Visit \url{https://example.com/docs/page} for details.
"annotation should carry the full URL"
);
}
#[test]
fn longtable_renders_rows_and_rules() {
let source = r"\documentclass{article}
\begin{document}
\begin{longtable}{ll}
\toprule
Name & Value \\
\midrule
A & 1 \\
\bottomrule
\end{longtable}
\end{document}";
let value = fresh_preview(source, "longtable.tex");
assert_eq!(value["status"], "ok");
let svg = page_svg(&value, 0);
assert!(svg.contains(">Name</text>"));
assert!(svg.contains(">alue</text>"));
assert!(svg.matches("<line").count() + svg.matches("<rect").count() >= 3);
}