From e07d293d5b5c751fecb9d872721a152fbe75202a Mon Sep 17 00:00:00 2001 From: abc2cb <271337822+abc2cb@users.noreply.github.com> Date: Thu, 22 Oct 2026 00:29:46 +0300 Subject: [PATCH] Mask thumbnail test: expect the key to include the document height 17f149e7 keys mask thumbnails on the document height as well as the width; main's #2117 test still computed the old width-only key. Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/mask_thumb_refresh_tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-egui/src/mask_thumb_refresh_tests.rs b/crates/ui-egui/src/mask_thumb_refresh_tests.rs index 4987501ad08..3f486708e09 100644 --- a/crates/ui-egui/src/mask_thumb_refresh_tests.rs +++ b/crates/ui-egui/src/mask_thumb_refresh_tests.rs @@ -45,5 +45,5 @@ fn inverting_a_tileless_mask_refreshes_its_thumbnail() { assert_eq!(mask.surface.default_pixel(), vec![0.0], "and now hides everything"); let after = h.state().thumbs.get(&key).map(|(r, _)| *r).expect("mask thumbnail drawn"); assert_ne!(before, after, "the thumbnail was rebuilt after Invert"); - assert_eq!(after, surface_fingerprint(&mask.surface) ^ 200u64 << 40, "keyed on the inverted mask"); + assert_eq!(after, surface_fingerprint(&mask.surface) ^ 200u64 << 40 ^ 100u64 << 16, "keyed on the inverted mask and the document size"); }