diff --git a/crates/xfa/src/tests.rs b/crates/xfa/src/tests.rs index 5a7b7124d3..7da9321059 100644 --- a/crates/xfa/src/tests.rs +++ b/crates/xfa/src/tests.rs @@ -3318,16 +3318,21 @@ fn a_caption_without_a_font_of_its_own_takes_its_fields() { #[test] fn a_button_caption_without_a_font_of_its_own_takes_its_fields() { - // An Arial 8pt button: a caption naming no font is shown in Arial 8pt, not the 10pt Courier - // default, and one naming only a size keeps the field's typeface. - let face = |caption_font: &str| { + // An Arial 8pt button without a height: a caption naming no font is shown in Arial 8pt, not + // the 10pt Courier default, and the button is as tall as one 8pt line; one naming only a size + // keeps the field's typeface. + let button = |caption_font: &str| { let items = positioned(&format!( - r#"