it: test focus moving
This commit is contained in:
parent
03b267e51f
commit
23f1aa5a31
7 changed files with 77 additions and 3 deletions
|
|
@ -23,6 +23,7 @@ pub struct TestKeyboard {
|
|||
pub server: CloneCell<Option<Rc<WlKeyboard>>>,
|
||||
pub destroyed: Once,
|
||||
pub enter: TEEH<TestEnterEvent>,
|
||||
pub leave: TEEH<Leave>,
|
||||
}
|
||||
|
||||
impl TestKeyboard {
|
||||
|
|
@ -49,7 +50,8 @@ impl TestKeyboard {
|
|||
}
|
||||
|
||||
fn handle_leave(&self, parser: MsgParser<'_, '_>) -> TestResult {
|
||||
let _ev = Leave::parse_full(parser)?;
|
||||
let ev = Leave::parse_full(parser)?;
|
||||
self.leave.push(ev);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ impl TestSeat {
|
|||
server: Default::default(),
|
||||
destroyed: Default::default(),
|
||||
enter: Default::default(),
|
||||
leave: Default::default(),
|
||||
});
|
||||
self.tran.add_obj(kb.clone())?;
|
||||
self.tran.sync().await;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue