diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-08-12 22:34:13 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-08-14 15:58:59 +0300 |
| commit | 42bd107795771593ac16e26b02fae15043e5e121 (patch) | |
| tree | 5394ced502849a7f7bf6920bbea6f1bf71620664 | |
| parent | a2767041d990fa3d5512627fe757a091e02fa17c (diff) | |
| download | niri-42bd107795771593ac16e26b02fae15043e5e121.tar.gz niri-42bd107795771593ac16e26b02fae15043e5e121.tar.bz2 niri-42bd107795771593ac16e26b02fae15043e5e121.zip | |
layout/tests: Add CompleteAnimations op
| -rw-r--r-- | src/layout/tests.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/layout/tests.rs b/src/layout/tests.rs index 4275d111..d5d29683 100644 --- a/src/layout/tests.rs +++ b/src/layout/tests.rs @@ -614,6 +614,7 @@ enum Op { #[proptest(strategy = "arbitrary_msec_delta()")] msec_delta: i32, }, + CompleteAnimations, MoveWorkspaceToOutput(#[proptest(strategy = "1..=5usize")] usize), ViewOffsetGestureBegin { #[proptest(strategy = "1..=5usize")] @@ -1401,6 +1402,11 @@ impl Op { layout.clock.set_unadjusted(now); layout.advance_animations(); } + Op::CompleteAnimations => { + layout.clock.set_complete_instantly(true); + layout.advance_animations(); + layout.clock.set_complete_instantly(false); + } Op::MoveWorkspaceToOutput(id) => { let name = format!("output{id}"); let Some(output) = layout.outputs().find(|o| o.name() == name).cloned() else { |
