it: test focus moving
This commit is contained in:
parent
03b267e51f
commit
23f1aa5a31
7 changed files with 77 additions and 3 deletions
|
|
@ -1,5 +1,6 @@
|
|||
use {
|
||||
crate::{it::test_error::TestResult, utils::clonecell::CloneCell},
|
||||
isnt::std_1::collections::IsntVecDequeExt,
|
||||
std::{cell::RefCell, collections::VecDeque, rc::Rc},
|
||||
};
|
||||
|
||||
|
|
@ -22,6 +23,13 @@ impl<T> TestExpectedEvent<T> {
|
|||
_ => bail!("No event occurred"),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn none(&self) -> TestResult {
|
||||
if self.data.events.borrow_mut().is_not_empty() {
|
||||
bail!("There are unexpected events");
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
pub struct TestExpectedEventHolder<T> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue