From 8bd6c88de03ebd927b047fc03566bc341256f351 Mon Sep 17 00:00:00 2001 From: skylar taylor-barrick Date: Thu, 22 Oct 2026 17:16:49 -0600 Subject: [PATCH] #3425: require exactly one options-bar border The test allowed zero borders, so it would pass if the options bar lost its border altogether. It now requires exactly one, the panel's, in every theme; with the options bar's own separators restored it still fails (three lines). --- crates/ui-egui/src/options_hit_area_tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-egui/src/options_hit_area_tests.rs b/crates/ui-egui/src/options_hit_area_tests.rs index d463c63a86..1498307f55 100644 --- a/crates/ui-egui/src/options_hit_area_tests.rs +++ b/crates/ui-egui/src/options_hit_area_tests.rs @@ -220,6 +220,6 @@ fn options_bar_has_a_single_full_width_border() { _ => None, }) .collect(); - assert!(borders.len() <= 1, "{kind:?}: the options bar draws its own borders on top of the panel's: {borders:?}"); + assert_eq!(borders.len(), 1, "{kind:?}: the options bar has exactly one border, the panel's (its own would double it): {borders:?}"); } }