mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-24 18:32:23 +00:00
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 <FredApps@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: BFlat <bombayapirat@gmail.com>
This commit is contained in:
co-authored by
FredApps
Claude Opus 5.5
BFlat
parent
542fe0a516
commit
aa78136bbf
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user