From 1241f076f58b45ffda2f715bc71abf2ce06da94b Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Tue, 1 Dec 2026 03:14:16 -0800 Subject: [PATCH] Main: the Home size test uses the renamed app bar helper #8770 renamed the chrome test helper Shown::starting to app_bar_control, which looks only in the window's title bar because the Tools panel can hold a control with the same name. The test the_app_bar_home_is_small_and_menu_titles_pad_their_text came in with 2030c7b2d2f while #8770 was open and still called starting, so vectorcraft-ui-egui's tests no longer compile on main (E0599 at chrome/tests.rs:573). The test now calls app_bar_control("Home"). --- crates/ui-egui/src/chrome/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-egui/src/chrome/tests.rs b/crates/ui-egui/src/chrome/tests.rs index 837c3d5e9a..79d4371f47 100644 --- a/crates/ui-egui/src/chrome/tests.rs +++ b/crates/ui-egui/src/chrome/tests.rs @@ -570,7 +570,7 @@ fn the_app_bar_home_is_small_and_menu_titles_pad_their_text() { bar.frame(Vec::new()).frame(Vec::new()); let (small, pad) = read.get(); assert!(small > 0.0 && pad > 0.0, "the sizes are read from the theme"); - let home = bar.starting("Home").unwrap_or_else(|| panic!("Home shows in {:?}", bar.names())).rect; + let home = bar.app_bar_control("Home").unwrap_or_else(|| panic!("Home shows in {:?}", bar.names())).rect; assert!(home.height() <= small + 0.5, "Home is {} high, over the small control height {small}", home.height()); let texts = bar.texts(); for title in ["File", "Edit", "Object"] {