test: fix macos lint and keep the pixel mouse server test unix-only

This commit is contained in:
Ogulcan Celik
2026-10-06 20:41:29 +03:00
parent 9a8e22ac22
commit 8defcf9683
3 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -578,7 +578,7 @@ mod tests {
let events = framer.push(b"\x1b\x1b");
assert_eq!(events.len(), 1);
assert!(framer.has_pending_input());
// The second escape is still pending until the idle flush.
assert_eq!(framer.flush_timeout().len(), 1);
}
-5
View File
@@ -124,11 +124,6 @@ impl RawInputFramer {
events_from_framed_chunks(self.byte_framer.push(data))
}
#[cfg(all(test, unix))]
pub(crate) fn has_pending_input(&self) -> bool {
self.byte_framer.has_pending_input()
}
#[cfg(windows)]
pub(crate) fn holds_host_default_color_escape(&self) -> bool {
self.byte_framer.buffer.as_slice() == [ESC]
+2
View File
@@ -6037,6 +6037,8 @@ async fn client_shell_release_cleanup_does_not_promote_and_survives_disconnect()
shutdown_test_runtimes(&mut server);
}
// Pixel mouse is a Unix client capability.
#[cfg(unix)]
#[tokio::test]
async fn client_shell_requests_host_pixels_for_an_unfocused_pixel_pane() {
// #4750: host reports go to the pane under the pointer, focused or not.