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