From 6674aa3ba88e4e316af4106746e4b2091868df79 Mon Sep 17 00:00:00 2001 From: Jesse Miller Date: Wed, 2 Sep 2026 14:32:04 -0600 Subject: [PATCH] surface: update keyToMouseShape tests to expect mouse_shape Update the tests to expect the mouse_shape back, not the hardcoded .default or .text --- src/surface_mouse.zig | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/surface_mouse.zig b/src/surface_mouse.zig index 58371310d..f506967ff 100644 --- a/src/surface_mouse.zig +++ b/src/surface_mouse.zig @@ -239,7 +239,7 @@ test "keyToMouseShape" { } { - // crosshair -> default (mouse tracking) + // no override restores the application shape (mouse tracking) const m: SurfaceMouse = .{ .physical_key = .alt_left, .mouse_event = .x10, @@ -249,7 +249,7 @@ test "keyToMouseShape" { .hidden = false, }; - const want: MouseShape = .default; + const want: MouseShape = .crosshair; const got = m.keyToMouseShape(); try testing.expect(want == got); } @@ -271,7 +271,7 @@ test "keyToMouseShape" { } { - // text -> default (mouse tracking) + // no override restores the application shape (mouse tracking) const m: SurfaceMouse = .{ .physical_key = .shift_left, .mouse_event = .x10, @@ -281,7 +281,7 @@ test "keyToMouseShape" { .hidden = false, }; - const want: MouseShape = .default; + const want: MouseShape = .text; const got = m.keyToMouseShape(); try testing.expect(want == got); } @@ -319,7 +319,7 @@ test "keyToMouseShape" { } { - // crosshair -> text (no mouse tracking) + // no override restores the application shape (no mouse tracking) const m: SurfaceMouse = .{ .physical_key = .alt_left, .mouse_event = .none, @@ -329,7 +329,7 @@ test "keyToMouseShape" { .hidden = false, }; - const want: MouseShape = .text; + const want: MouseShape = .crosshair; const got = m.keyToMouseShape(); try testing.expect(want == got); }