forge
Explore
Log in

Don't you dare go Hollow

edith

Clone
★ 0

0 watching0 forksRust18.3 MiBff99ad6Tahinli6 days ago1055 commits

tlfix.rs22 lines, 787 bytesHistoryRawDownload
1//! Timeline fixes: the empty-area menu and the plain wording of the clip menu.
2
3use crate::menus::{BENCH_ITEMS, MENU_ITEMS};
4use crate::keymap::ActionId;
5
6#[test]
7fn the_empty_area_menu_pastes_and_drops_a_marker() {
8 assert!(BENCH_ITEMS.contains(&ActionId::Paste));
9 assert!(BENCH_ITEMS.contains(&ActionId::MarkerHere));
10 assert!(BENCH_ITEMS.contains(&ActionId::PlayheadHere));
11}
12
13#[test]
14fn the_clip_menu_keeps_its_action_ids_while_the_words_are_plain() {
15 for id in [ActionId::LoopTrim, ActionId::Dissolve, ActionId::Regroup] {
16 assert!(MENU_ITEMS.contains(&id), "{id:?}");
17 }
18 let src = include_str!("../ui/overlays.rs");
19 for word in ["Loop while trimming", "Blend into next clip", "Group again"] {
20 assert!(src.contains(word), "{word}");
21 }
22}