From f9b87ee8f10f3df615285da03767eb8173d96a8a Mon Sep 17 00:00:00 2001 From: aiongg Date: Tue, 17 Nov 2026 14:48:44 +0000 Subject: [PATCH] fit test: a zero-width strip reserves no button --- crates/behavior/tests/fit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/behavior/tests/fit.rs b/crates/behavior/tests/fit.rs index 131bac9a1..7ec8b3f1b 100644 --- a/crates/behavior/tests/fit.rs +++ b/crates/behavior/tests/fit.rs @@ -47,7 +47,7 @@ fn kept_selection_keeps_its_width_and_overflow_starts_at_the_end() { let first_hidden = others.iter().position(|i| others_hidden.contains(i)); if let Some(at) = first_hidden { assert!(others[at..].iter().all(|i| others_hidden.contains(i)), "overflow takes the last tabs: {f:?}"); - assert!(f.overflow_width > 0.0); + assert!(f.overflow_width > 0.0 || available == 0.0, "the button is reserved: {f:?}"); } else { assert_eq!(f.overflow_width, 0.0); }