Integration fixes for the community batch
- Footage sources: the cancellable wrapper (#784) forwards frame_with (#752 float curves) and problem (#887); problem's default lives on the trait. - Media: a called-off decode (#784) is not a footage problem (#887). - Effect Controls rename (#953): Escape cancels (egui drops focus on Escape the same frame), the Rename item is translated; regression test. - i18n (#873): drop the /out-i18n/ ignore rule and the note about an uncommitted script. - Tests: text range selector caps (#926) re-borrow the layer; the RAM preview test (#793) sets the comp's own Resolution (#462). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
ac37493026
commit
6baff9f5fe
@@ -673,10 +673,29 @@ fn effect_control_name_can_be_renamed_from_its_header() {
|
||||
h.step();
|
||||
h.key_press(egui::Key::Enter);
|
||||
h.run_steps(3);
|
||||
let current_name = |h: &Harness<'_, EffectcraftApp>| {
|
||||
layer(&h.state().session, x.small).effects().unwrap().groups().find(|g| g.uid == x.point_fx).unwrap().name.clone()
|
||||
};
|
||||
let current_name =
|
||||
|h: &Harness<'_, EffectcraftApp>| layer(&h.state().session, x.small).effects().unwrap().groups().find(|g| g.uid == x.point_fx).unwrap().name.clone();
|
||||
assert_eq!(current_name(&h), "Speed");
|
||||
h.state_mut().session.execute("edit.undo", json!({})).unwrap();
|
||||
assert_eq!(current_name(&h), "Point Control");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn effect_rename_escape_keeps_the_name() {
|
||||
let (app, x) = app();
|
||||
let mut h = Harness::builder().with_size(egui::vec2(1700.0, 1100.0)).build_eframe(|_| app);
|
||||
settle(&mut h);
|
||||
let point = rect_of(&h, &format!("effectControls.effect.{}.name", x.point_fx)).center();
|
||||
click(&mut h, point);
|
||||
click(&mut h, point);
|
||||
h.run_steps(3);
|
||||
assert!(ids(&h).contains(&format!("effectControls.effect.{}.nameEdit", x.point_fx)));
|
||||
h.key_press_modifiers(egui::Modifiers::COMMAND, egui::Key::A);
|
||||
h.event(egui::Event::Text("Speed".into()));
|
||||
h.step();
|
||||
h.key_press(egui::Key::Escape);
|
||||
h.run_steps(3);
|
||||
let name = layer(&h.state().session, x.small).effects().unwrap().groups().find(|g| g.uid == x.point_fx).unwrap().name.clone();
|
||||
assert_eq!(name, "Point Control");
|
||||
assert!(!ids(&h).contains(&format!("effectControls.effect.{}.nameEdit", x.point_fx)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user