From 7c656447b7ef3cec8e4e09d487c71a530cfc9f03 Mon Sep 17 00:00:00 2001 From: DingusMcRinkyDinky <127614779+DingusMcRinkyDinky@users.noreply.github.com> Date: Fri, 6 Nov 2026 17:53:13 +0100 Subject: [PATCH] Gradient Map test: the preview has the stop back while the drag is held Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01EZbgszHyuEuWAzxaamteuU --- crates/ui-egui/src/dialogs/adjust_editors/ui_tests.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/ui-egui/src/dialogs/adjust_editors/ui_tests.rs b/crates/ui-egui/src/dialogs/adjust_editors/ui_tests.rs index 055b5b2b503..60275b87338 100644 --- a/crates/ui-egui/src/dialogs/adjust_editors/ui_tests.rs +++ b/crates/ui-egui/src/dialogs/adjust_editors/ui_tests.rs @@ -573,6 +573,8 @@ fn gradient_map_stop_dragged_off_the_strip_is_removed_in_one_step() { h.run_steps(1); h.hover_at(back); h.run_steps(1); + let preview = h.state().live_adjust.as_ref().map(|(_, v)| v["stops"].as_array().map(Vec::len)); + assert_eq!(preview, Some(Some(4)), "{depth}: the preview has the stop back while it's held"); h.drop_at(back); h.run_steps(3); assert_eq!(map_stops(&layer(&h).1), vec![(0.0, [0, 0, 0]), (0.4, [255, 0, 0]), (0.5, [0, 255, 0]), (1.0, [255, 255, 255])], "{depth}: kept");