From ce7e4f3752f081f5eb8646caae75b418dbc93826 Mon Sep 17 00:00:00 2001 From: David Mann Date: Tue, 20 Oct 2026 17:44:35 +0200 Subject: [PATCH] Shape Density/Feather test: drag the curved Feather track from main (#6545) Main made the Properties Feather slider's track cubic (#6727), so a 1% drag no longer reaches 10 px; drag a fifth of the way (8 px) as main's own mask test does. Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/mask_props_ui_tests.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/mask_props_ui_tests.rs b/crates/ui-egui/src/mask_props_ui_tests.rs index a58eccbfd70..782337ed36e 100644 --- a/crates/ui-egui/src/mask_props_ui_tests.rs +++ b/crates/ui-egui/src/mask_props_ui_tests.rs @@ -220,8 +220,9 @@ fn shape_properties_edit_density_and_feather() { // Live: the fill already shows beyond the path at half strength. let a = shape(&h).cache.as_ref().unwrap().rgba(2, 2)[3]; assert!((a - 0.5).abs() < 0.03, "{theme:?}: {a}"); - drag(&mut h, feather, &[0.0, 0.005, 0.01]); - assert!((shape(&h).feather - 10.0).abs() < 0.5, "{theme:?}: feather {}", shape(&h).feather); + // Feather's track is curved (#6545): a fifth of the way is 8 px. + drag(&mut h, feather, &[0.0, 0.1, 0.2]); + assert!((shape(&h).feather - 8.0).abs() < 0.3, "{theme:?}: feather {}", shape(&h).feather); assert_eq!(h.state().session.active().unwrap().history.past_len(), before + 2); h.state_mut().run("edit.undo", json!({})).unwrap(); assert_eq!(shape(&h).feather, 0.0);