fit test: a zero-width strip reserves no button

This commit is contained in:
aiongg
2026-11-17 14:48:44 +00:00
parent bf755d4228
commit f9b87ee8f1
+1 -1
View File
@@ -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);
}