From f83ff2d49f3cdd814f5861c64890ed9ddff60bd0 Mon Sep 17 00:00:00 2001 From: aiongg Date: Tue, 24 Nov 2026 22:30:54 +0000 Subject: [PATCH] tests: pages picture bound scrolls past the budget by half --- crates/pages/tests/it/views.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/pages/tests/it/views.rs b/crates/pages/tests/it/views.rs index fb02cdc9c4..3ddb1e268c 100644 --- a/crates/pages/tests/it/views.rs +++ b/crates/pages/tests/it/views.rs @@ -512,7 +512,8 @@ fn a_page_gap_change_keeps_the_scroll_offset() { #[trial] fn the_pictures_a_view_holds_stay_bounded_as_it_scrolls_through_many_pages() { let budget = TextureStoreOptions::pages().budget.max_entries; - let count = 2 * budget; + // Past the budget by half again: the store has to evict for the bound to be tested. + let count = budget + budget / 2; let state = Rc::new(RefCell::new(state_with(|s| { s.continuous = true; s.fit = Fit::None; @@ -539,6 +540,7 @@ fn the_pictures_a_view_holds_stay_bounded_as_it_scrolls_through_many_pages() { assert!(drawn > 0, "the view drew pages"); // The pages of the last two passes, in view and one row either side, are never evicted. let bound = budget + 2 * (drawn + 2); + eprintln!("DIAG pictures_bounded: budget {budget}, count {count}, held {held}, drawn {drawn}"); assert!(held > 0 && held <= bound, "{held} pictures held over {count} pages scrolled through, at most {bound} expected"); }