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 <[email protected]>
This commit is contained in:
David MannandClaude Opus 5.5 committed 2026-11-08 20:31:42 +01:00
1 parent 3ef886c2e0
commit 4e43c23e43
1 file changed
+4 -2
@@ -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