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
|
@ -82,11 +82,13 @@ mod test {
|
|||
let editor2 = cx
|
||||
.update(|cx| {
|
||||
window2.update(cx, |_, cx| {
|
||||
cx.activate_window();
|
||||
cx.focus_self();
|
||||
cx.view().clone()
|
||||
})
|
||||
})
|
||||
.unwrap();
|
||||
cx.run_until_parked();
|
||||
|
||||
cx.update(|cx| {
|
||||
let vim = Vim::read(cx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue