From 409af66699af09ee3a969b1845c7605076f99c3e Mon Sep 17 00:00:00 2001 From: bflatastic Date: Fri, 9 Oct 2026 06:26:49 +0700 Subject: [PATCH] Tests: #631's ICF test builds its runs with #627's inline field #627 added TextRun::inline while #631 was open. Co-Authored-By: Claude Opus 5.5 --- crates/text/src/tests.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/text/src/tests.rs b/crates/text/src/tests.rs index b044ad486..35339fe41 100644 --- a/crates/text/src/tests.rs +++ b/crates/text/src/tests.rs @@ -658,7 +658,10 @@ fn character_alignment_on_the_icf_lines_small_characters_up_with_the_largest_fac let st = |size: f64| CharStyle { font_family: family.into(), ..style(size) }; let mut t = point("", st(40.0)); t.vertical = vertical_type; - t.runs = vec![TextRun { text: "大".into(), style: st(40.0) }, TextRun { text: "小".into(), style: CharStyle { char_align: a, ..st(20.0) } }]; + t.runs = vec![ + TextRun { text: "大".into(), style: st(40.0), inline: None }, + TextRun { text: "小".into(), style: CharStyle { char_align: a, ..st(20.0) }, inline: None }, + ]; let l = layout(db(), &t); let (big, small) = (l.glyphs[0].origin, l.glyphs[1].origin); if vertical_type { small.x - big.x } else { big.y - small.y }