From 932d1bc1873e1f3ca1b543e0829349e2973c77ed Mon Sep 17 00:00:00 2001 From: Marco Arnulfo Date: Sun, 25 Oct 2026 00:15:39 +0200 Subject: [PATCH] Recolor Artwork: the picker test checks the picker previews nothing on the art itself (part of #4028) --- crates/ui-egui/src/dialogs/recolor.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/ui-egui/src/dialogs/recolor.rs b/crates/ui-egui/src/dialogs/recolor.rs index 60101afa5..810d6881d 100644 --- a/crates/ui-egui/src/dialogs/recolor.rs +++ b/crates/ui-egui/src/dialogs/recolor.rs @@ -787,6 +787,8 @@ mod tests { assert_eq!(fill(&app, &all[i]), previewed, "the art previews the row's new color"); double_click(&mut app, &ctx, rect, 0.1, i); + frame(&mut app, &ctx, 0.3, vec![], i); + assert_eq!(fill(&app, &all[0]), to_color(&all[0]), "the picker previews nothing itself"); let d = app.ui.dialog.as_ref().unwrap(); assert_eq!(d.kind, "colorPicker", "a double-click opens the Color Picker"); assert_eq!(d.fields.get("color").and_then(color_value), previewed, "on the row's new color");