aboutsummaryrefslogtreecommitdiff
path: root/src/client/shell/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/shell/tests')
-rw-r--r--src/client/shell/tests/endpoints.rs2
-rw-r--r--src/client/shell/tests/workspace_navigation.rs1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/client/shell/tests/endpoints.rs b/src/client/shell/tests/endpoints.rs
index 4ac8183c..b43b9a31 100644
--- a/src/client/shell/tests/endpoints.rs
+++ b/src/client/shell/tests/endpoints.rs
@@ -1559,6 +1559,7 @@ fn reconnect_same_endpoint_accepts_new_generation_surface_revision() {
state.set_endpoint_status(&endpoint_id, ClientEndpointStatus::Online);
assert!(state.activate_endpoint_projection(&endpoint_id));
+ assert!(state.compose(106, 20).is_none());
let mut reconnected_surface = surface();
reconnected_surface.boot_id = "shared-server-boot".into();
reconnected_surface.projection_revision = 1;
@@ -1570,6 +1571,7 @@ fn reconnect_same_endpoint_accepts_new_generation_surface_revision() {
assert_eq!(state.pane_surface.as_ref().unwrap().surface_revision, 1);
assert!(state.pending_pane_surface.is_none());
assert_eq!(state.agent_scroll, 7);
+ assert!(state.compose(106, 20).is_some());
}
}
diff --git a/src/client/shell/tests/workspace_navigation.rs b/src/client/shell/tests/workspace_navigation.rs
index 2a100957..7ea02066 100644
--- a/src/client/shell/tests/workspace_navigation.rs
+++ b/src/client/shell/tests/workspace_navigation.rs
@@ -431,6 +431,7 @@ fn active_preview_is_not_retargeted_by_deletion_or_reboot() {
7,
Box::new(local.clone()),
);
+ state.set_pane_surface(surface());
state.compose(100, 28).unwrap();
enter_navigation(&mut state);
preview_key(&mut state, b"\x1b[B");