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 <[email protected]>
This commit is contained in:
abc2cbandClaude Opus 5.5 committed 2026-10-22 00:29:46 +03:00
1 parent 17f149e73c
commit e07d293d5b
1 file changed
+1 -1
@@ -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");
}