it: test idle timeout
This commit is contained in:
parent
b966a73682
commit
d4f49bf947
4 changed files with 43 additions and 3 deletions
|
|
@ -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 _),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue