LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust
KEY-SLIDER-WHEEL: the wheel-nudge test reads exposure as a number (follow-up to #884)
Claude870eaa74e649
diff --git a/crates/ui-egui/src/tests_masking.rs b/crates/ui-egui/src/tests_masking.rsindex 652e811c9..e5edf3c7a 100644--- a/crates/ui-egui/src/tests_masking.rs+++ b/crates/ui-egui/src/tests_masking.rs@@ -1345,14 +1345,14 @@ fn a_selected_develop_slider_accepts_wheel_nudges() {let result = h.request("ui.clickWidget", json!({"id": name, "fx": 0.5}), T);assert_eq!(result["ok"], true, "{result}");- let before = lightcraft_develop::controls::get(&develop(&h), "light.exposure");+ let before = lightcraft_develop::controls::get(&develop(&h), "light.exposure").expect("exposure");// A wheel event over the selected control adjusts exposure instead of// scrolling the right sidebar (an unselected slider leaves scrolling alone).let result = h.request("ui.scroll", json!({"dy": 120.0}), T);assert_eq!(result["ok"], true, "{result}");h.step();- let after = lightcraft_develop::controls::get(&develop(&h), "light.exposure");+ let after = lightcraft_develop::controls::get(&develop(&h), "light.exposure").expect("exposure");assert!(after > before, "selected exposure did not increase: {before} -> {after}");}