Cover longtable row and rule rendering
This commit is contained in:
1 parent
b599f92516
commit
c3ae426a10
1 file changed
+20
@@ -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);
|
||||
}
|
||||
Reference in new issue
Block a user