Merge remote-tracking branch 'origin/main' into window-handles

This commit is contained in:
Nathan Sobo 2023-08-07 22:07:20 -06:00
commit d687c3d81f
11 changed files with 222 additions and 33 deletions

View file

@ -4088,6 +4088,7 @@ impl AnyWindowHandle {
self.update(cx, |cx| cx.remove_window())
}
#[cfg(any(test, feature = "test-support"))]
pub fn simulate_activation(&self, cx: &mut TestAppContext) {
self.update(cx, |cx| {
let other_window_ids = cx
@ -4105,6 +4106,7 @@ impl AnyWindowHandle {
});
}
#[cfg(any(test, feature = "test-support"))]
pub fn simulate_deactivation(&self, cx: &mut TestAppContext) {
self.update(cx, |cx| {
cx.window_changed_active_status(self.window_id, false);