From 4e43c23e433325f40b72caae0661d2c4f89829cc Mon Sep 17 00:00:00 2001 From: David Mann Date: Sun, 8 Nov 2026 20:31:42 +0100 Subject: [PATCH] Magic Wand seed-outside tests: Anti-alias off, so they test the modes with hard edges (#12397) #12146 gives near-matching neighbours a soft fringe when Anti-alias is on. The #11848 tests left Anti-alias at its default and expected exact column bounds, so main's engine tests failed (381 instead of 380). Co-Authored-By: Claude Opus 5.5 --- .../src/cmd/selection_cmds/wand_seed_outside_tests.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/engine/src/cmd/selection_cmds/wand_seed_outside_tests.rs b/crates/engine/src/cmd/selection_cmds/wand_seed_outside_tests.rs index ce289bea914..a0f079a96b2 100644 --- a/crates/engine/src/cmd/selection_cmds/wand_seed_outside_tests.rs +++ b/crates/engine/src/cmd/selection_cmds/wand_seed_outside_tests.rs @@ -19,12 +19,14 @@ fn ramp() -> Session { s } +/// Anti-alias off: these tests check Contiguous and the modes with hard edges; the soft fringe +/// near-matching neighbours get is tested in `photocraft_algo`'s wand anti-alias tests. fn wand(s: &mut Session, x: i32, tolerance: f64, mode: &str) { - s.execute("select.magicWand", json!({"x": x, "y": 400, "tolerance": tolerance, "mode": mode})).unwrap(); + s.execute("select.magicWand", json!({"x": x, "y": 400, "tolerance": tolerance, "mode": mode, "antiAlias": false})).unwrap(); } fn wand_global(s: &mut Session, x: i32, tolerance: f64, mode: &str) { - s.execute("select.magicWand", json!({"x": x, "y": 400, "tolerance": tolerance, "mode": mode, "contiguous": false})).unwrap(); + s.execute("select.magicWand", json!({"x": x, "y": 400, "tolerance": tolerance, "mode": mode, "contiguous": false, "antiAlias": false})).unwrap(); } /// The columns of row 400 that are at least half selected: (first, end), or `None`. Every