From 4b4487c4e1eccdf124fa3872a3bd29f8609aff2f Mon Sep 17 00:00:00 2001 From: Nathaniel Ledford Date: Fri, 23 Oct 2026 20:04:37 -0400 Subject: [PATCH] LRC-LIB-LIBFOLDERS: the width sweep also checks that the deepest row's count follows its name --- crates/ui-egui/src/tests/panels.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/ui-egui/src/tests/panels.rs b/crates/ui-egui/src/tests/panels.rs index a0137b7d6..ca59cc9ee 100644 --- a/crates/ui-egui/src/tests/panels.rs +++ b/crates/ui-egui/src/tests/panels.rs @@ -1652,6 +1652,9 @@ fn a_count_never_covers_the_name_of_a_deep_row() { for (id, r) in h.app.widgets.iter().filter(|(w, _)| w.starts_with("count:libfolder:")) { assert!(r.right() <= panel.right() || r.left() >= panel.right(), "at {width} pt {id} straddles the edge: {r:?} / {panel:?}"); } + // and the deepest row's count still comes after its name + let (label, count) = (widget(&h, &format!("label:libfolder:{deep}")), widget(&h, &format!("count:libfolder:{deep}"))); + assert!(count.left() >= label.right(), "at {width} pt the count comes after the name: {label:?} {count:?}"); } }