mirror of
https://github.com/herdrdev/herdr.git
synced 2026-11-06 00:06:18 +00:00
test: fix macos lint and keep the pixel mouse server test unix-only
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user