From 1df1e0fc93624388748f1815b70975db5ac176ec Mon Sep 17 00:00:00 2001 From: Martin Ball Date: Wed, 18 Nov 2026 14:49:22 +0000 Subject: [PATCH] canvas scrollbars trial: wait out the tip's exit fade on the fixture's manual clock --- crates/ui-canvas/tests/it/canvas/scrollbars.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ui-canvas/tests/it/canvas/scrollbars.rs b/crates/ui-canvas/tests/it/canvas/scrollbars.rs index ede942417..f2580f7d2 100644 --- a/crates/ui-canvas/tests/it/canvas/scrollbars.rs +++ b/crates/ui-canvas/tests/it/canvas/scrollbars.rs @@ -147,8 +147,8 @@ fn a_dragged_vertical_thumb_shows_the_tip_beside_it_and_nothing_when_it_is_not_d assert!(tip.right() <= bar.left() + 0.5, "the tip is beside the bar on the reading-start side: {tip:?} by {bar:?}"); assert!(tip.bottom() > bar.top() && tip.top() < bar.bottom(), "level with the track: {tip:?}"); fixture.release_at(from + by); - // The tip leaves as every popup does, through its exit fade. - fixture.settle(); + // The tip leaves as every popup does, through its exit fade; the fixture's clock moves only when told to. + fixture.advance(1.0).settle(); assert_eq!(shows_tip(&fixture), None, "the release ends the tip"); fixture.idle(2); assert_eq!(shows_tip(&fixture), None, "nothing is kept after it");