From aa78136bbf92b7f71df6783e0de3094be3e385eb Mon Sep 17 00:00:00 2001 From: FredApps <153173854+FredApps@users.noreply.github.com> Date: Fri, 20 Nov 2026 20:54:22 +0700 Subject: [PATCH] test: name the menu-access fixture fonts in 13 bytes (#8833) #8813 tops up the font list with fonts renamed `Menu Test Font NN` on runners with 20 or fewer families, but vectorcraft_testkit::fonts::renamed only takes a 13-byte family (the length of "Source Sans 3"). Every run that reaches the loop panics, as the coverage shard on main does. `Menu Test FNN` is 13 bytes. Co-authored-by: FredApps Co-authored-by: Claude Opus 5.5 Co-authored-by: BFlat --- crates/ui-egui/tests/menu_access_keys.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/tests/menu_access_keys.rs b/crates/ui-egui/tests/menu_access_keys.rs index 2d21b77d88..5defb8378e 100644 --- a/crates/ui-egui/tests/menu_access_keys.rs +++ b/crates/ui-egui/tests/menu_access_keys.rs @@ -771,7 +771,8 @@ fn menu_access_stationary_pointer_repeat_and_rerun_do_not_retarget_or_double_inv if db.menu_family_list_now().len() > 20 { break; } - db.add_font(vectorcraft_testkit::fonts::renamed(&format!("Menu Test Font {i:02}"))); + // `renamed` needs a family name as long as "Source Sans 3" (13 bytes). + db.add_font(vectorcraft_testkit::fonts::renamed(&format!("Menu Test F{i:02}"))); } let text = s.app.run("text.create", json!({"x": 250, "y": 200, "text": "Menu", "font": "Inter", "size": 12})).unwrap()["id"].clone(); s.app.run("select.set", json!({"ids": [text]})).unwrap();