From 19ccaa164f9d4b0066bebd6711654341d92e6f27 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Mon, 12 Oct 2026 18:08:52 -0400 Subject: [PATCH] Render tests: probe the outer shadow where the narrower blur still reaches Co-Authored-By: Claude Opus 5.5 (1M context) --- crates/render/src/tests.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/render/src/tests.rs b/crates/render/src/tests.rs index 80efa43..9a0c6fe 100644 --- a/crates/render/src/tests.rs +++ b/crates/render/src/tests.rs @@ -119,9 +119,10 @@ fn effects_tables_charts_render() { all.extend(charts); let p = deck_with(all); let img = render_slide(&p, 0, &RenderOpts { scale: 1.0, ..Default::default() }); - // Shadow darkens below-right of the shape. - let px = img.pixel(258, 156); - assert!(px[0] < 250, "{px:?}"); + // Shadow darkens below-right of the shape (grey, past the glow), blurred by a third of its + // 8 pt blur radius. + let px = img.pixel(255, 155); + assert!(px[0] < 240 && px[0] == px[2], "{px:?}"); } #[test]