1
0
Fork 0
forked from wry/wry

it: test focus moving

This commit is contained in:
Julian Orth 2022-05-04 15:09:16 +02:00
parent 03b267e51f
commit 23f1aa5a31
7 changed files with 77 additions and 3 deletions

View file

@ -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> {