mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-01 18:54:31 +01:00
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
2030c7b2d2 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").
This commit is contained in:
1 parent
dd1f4d2936
commit
1241f076f5
1 file changed
+1
-1
@@ -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"] {
|
||||
|
||||
Reference in new issue
Block a user