FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
Batch: #1915's duplicate-selection delete test follows main's exact-selection Clear
aiongg6b10646e4fa9
diff --git a/crates/engine/src/timeline_move_tests.rs b/crates/engine/src/timeline_move_tests.rsindex 3f4d32350..846c5a19a 100644--- a/crates/engine/src/timeline_move_tests.rs+++ b/crates/engine/src/timeline_move_tests.rs@@ -158,8 +158,12 @@ fn duplicate_selection_delete_matches_unique_selection_with_and_without_links()if !linked {s.execute("timeline.setTrack", json!({"track": a_track.0, "syncLock": false})).unwrap();}- s.state.selection = vec![v.id, v.id];- assert_selection_edit_matches_control(&mut s, vec![v.id], command, json!({}));+ // Clear and Ripple Delete act on the selection as it is: selecting the clip takes its+ // partner along only with Linked Selection on+ s.execute("timeline.select", json!({"clips": [v.id.0]})).unwrap();+ let unique = s.state.selection.clone();+ s.state.selection = unique.iter().chain(&unique).copied().collect();+ assert_selection_edit_matches_control(&mut s, unique, command, json!({}));assert!(s.active_sequence().unwrap().find_item(v.id).is_none());assert_eq!(s.active_sequence().unwrap().find_item(a.id).is_none(), linked);assert!(s.state.selection.is_empty());