FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
UI.9: dock resize test checks Space after a pointer resize
aiongga0ee50a636b0
diff --git a/crates/ui-egui/tests/ui_dock_resize.rs b/crates/ui-egui/tests/ui_dock_resize.rsindex 00e3a8379..e61a8f7a2 100644--- a/crates/ui-egui/tests/ui_dock_resize.rs+++ b/crates/ui-egui/tests/ui_dock_resize.rs@@ -136,8 +136,7 @@ fn space_plays_after_a_pane_is_resized_with_the_pointer() {h.event(Event::PointerButton { pos: from + vec2(20.0, 0.0), button: PointerButton::Primary, pressed: false, modifiers: Modifiers::NONE });frames(&mut h, 3);assert_eq!(first_size(&h), 420.0);- // The divider keeps keyboard focus so arrows can nudge it; that must not cost the editor its shortcuts.- assert_eq!(h.ctx.memory(|memory| memory.focused()), Some(Id::new("filmcraft-docking").with(("split", &Vec::<bool>::new()))));+ // Resizing a pane must not cost the editor its shortcuts.press(&mut h, Key::Space);assert!(h.state().playback.playing, "Space must start playback after resizing a pane (#1482)");press(&mut h, Key::Space);