Skip to content

LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust

Integration: #3182 keep the Colour Range regression comment on its own test

aiongg30bbbc75705a
diff --git a/crates/ui-egui/src/tests/masking.rs b/crates/ui-egui/src/tests/masking.rs
index f73b1d230..a7cbc82bf 100644
--- a/crates/ui-egui/src/tests/masking.rs
+++ b/crates/ui-egui/src/tests/masking.rs
@@ -1698,8 +1698,6 @@ fn assert_close(a: &serde_json::Value, b: &serde_json::Value) {
assert!(a.iter().zip(&b).all(|(x, y)| (x - y).abs() < 0.05), "{a:?} vs {b:?}");
}
-/// Regression: the Colour Range "Pick" button armed the eyedropper, but with the Masking panel
-/// open the loupe's clicks went to the mask overlay, so no sample was ever taken.
#[test]
fn adding_radial_component_disarms_color_range_picker() {
let mut h = detail("panel.masking");
@@ -1722,6 +1720,8 @@ fn adding_radial_component_disarms_color_range_picker() {
assert!(rx > 0.22, "dragging a radial handle resizes the component: {rx}");
}
+/// Regression: the Colour Range "Pick" button armed the eyedropper, but with the Masking panel
+/// open the loupe's clicks went to the mask overlay, so no sample was ever taken.
#[test]
fn color_range_pick_button_samples_the_photo() {
let mut h = detail("panel.masking");