Add inline framed fbox
This commit is contained in:
1 parent
32b0064e5f
commit
2552008d4b
11 files changed
+273
-28
No files matched your search
@@ -404,3 +404,25 @@ X\makebox[20mm][c]{mid}Y
|
||||
"right-aligned box did not fill width: {right}"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn inline_fbox_draws_a_frame_around_content() {
|
||||
let source = r#"\documentclass{article}
|
||||
\begin{document}
|
||||
\setlength{\parindent}{0pt}
|
||||
A\fbox{B}C
|
||||
\end{document}
|
||||
"#;
|
||||
let value = fresh_preview(source, "inline-fbox.tex");
|
||||
assert_eq!(value["status"], "ok", "{}", value["message"]);
|
||||
let svg = page_svg(&value, 0);
|
||||
assert!(
|
||||
svg.contains("fill=\"none\" stroke=\"#000000\""),
|
||||
"inline fbox frame is missing"
|
||||
);
|
||||
assert!(svg.contains(">B</text>"), "inline fbox content is missing");
|
||||
assert!(
|
||||
svg.contains(">A</text>") && svg.contains(">C</text>"),
|
||||
"text around fbox missing"
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user