1
0
Fork 0
forked from wry/wry

it: test idle timeout

This commit is contained in:
Julian Orth 2024-04-03 16:06:35 +02:00
parent b966a73682
commit d4f49bf947
4 changed files with 43 additions and 3 deletions

View file

@ -19,7 +19,7 @@ use {
video::{Connector, Transform},
Axis, Direction,
},
std::{cell::Cell, ops::Deref, ptr, rc::Rc},
std::{cell::Cell, ops::Deref, ptr, rc::Rc, time::Duration},
};
pub static TEST_CONFIG_ENTRY: ConfigEntry = ConfigEntry {
@ -246,6 +246,10 @@ impl TestConfig {
})
}
pub fn set_idle(&self, timeout: Duration) -> TestResult {
self.send(ClientMessage::SetIdle { timeout })
}
pub fn set_floating(&self, seat: SeatId, floating: bool) -> TestResult {
self.send(ClientMessage::SetFloating {
seat: Seat(seat.raw() as _),