M9.7: rustfmt the Effect Controls UI test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
5d3beaf7df
commit
63082dd817
@@ -112,11 +112,13 @@ fn effect_controls_widgets_register_automation_ids() {
|
|||||||
h.step();
|
h.step();
|
||||||
h.step();
|
h.step();
|
||||||
let have = ids(&h);
|
let have = ids(&h);
|
||||||
let want = ["histogram", "channel", "inBlack", "gamma", "inWhite", "outBlack", "outWhite"].map(|k| format!("effectControls.effect.{}.levels.{k}", x.levels));
|
let want =
|
||||||
|
["histogram", "channel", "inBlack", "gamma", "inWhite", "outBlack", "outWhite"].map(|k| format!("effectControls.effect.{}.levels.{k}", x.levels));
|
||||||
let missing: Vec<&String> = want.iter().filter(|w| !have.contains(w)).collect();
|
let missing: Vec<&String> = want.iter().filter(|w| !have.contains(w)).collect();
|
||||||
assert!(missing.is_empty(), "missing {missing:?}");
|
assert!(missing.is_empty(), "missing {missing:?}");
|
||||||
// The angle reads AE-style.
|
// The angle reads AE-style.
|
||||||
let angle = h.state().auto.previous.iter().chain(h.state().auto.elements.iter()).find(|e| e.id == format!("effectControls.prop.{}.value", x.angle)).cloned();
|
let angle =
|
||||||
|
h.state().auto.previous.iter().chain(h.state().auto.elements.iter()).find(|e| e.id == format!("effectControls.prop.{}.value", x.angle)).cloned();
|
||||||
assert_eq!(angle.map(|e| e.label), Some("0x+0.0°".to_string()));
|
assert_eq!(angle.map(|e| e.label), Some("0x+0.0°".to_string()));
|
||||||
// Twirling the angle open shows its dial.
|
// Twirling the angle open shows its dial.
|
||||||
h.state_mut().ui.fx_slider_open.insert(x.angle);
|
h.state_mut().ui.fx_slider_open.insert(x.angle);
|
||||||
|
|||||||
Reference in New Issue
Block a user