Ensure focus-sensitive tests have active windows
This commit is contained in:
parent
1bf33b4b61
commit
72c022f413
4 changed files with 11 additions and 1 deletions
|
@ -174,6 +174,7 @@ impl TestAppContext {
|
|||
drop(cx);
|
||||
let view = window.root_view(self).unwrap();
|
||||
let cx = Box::new(VisualTestContext::from_window(*window.deref(), self));
|
||||
cx.run_until_parked();
|
||||
// it might be nice to try and cleanup these at the end of each test.
|
||||
(view, Box::leak(cx))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue