summaryrefslogtreecommitdiff
path: root/test/behaviour/look_and_exec.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-05 02:20:42 -0300
committerGabriel Schneider <[email protected]>2026-11-05 09:54:56 -0300
commitd4485660aa6339dbe546a81f4b543d68dfbfa9ec (patch)
tree58318fd507577faa19b7dc48b523d691e546f8cd /test/behaviour/look_and_exec.zig
parent534f7da02ac58e475bb24801d315d7b736bd9c38 (diff)
downloadpardes-d4485660aa6339dbe546a81f4b543d68dfbfa9ec.tar.gz
pardes-d4485660aa6339dbe546a81f4b543d68dfbfa9ec.zip
the four gui unit tests that failed on the base pass: the behaviour tests allow the window's own rows (/status ends in `pointer in|out` on a window; a bare setting word moves a setting, a toggle to its other side and Lift, Crt or ShaderAnimation to their next state, and Shader and Pet, whose off means no file and no pet, take a name, not a flip); the tagline pointer-mapping test puts the workspace tag's text TAG_TEXT_INSET cells in, as it is drawn; the caret test that grew a tag past a row's end goes, as a tag wraps onto rows (up to MAX_TAG_ROWS) and no caret is past one
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/behaviour/look_and_exec.zig')
-rw-r--r--test/behaviour/look_and_exec.zig6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/behaviour/look_and_exec.zig b/test/behaviour/look_and_exec.zig
index e88a0053..658d2483 100644
--- a/test/behaviour/look_and_exec.zig
+++ b/test/behaviour/look_and_exec.zig
@@ -500,7 +500,11 @@ test "look-and-exec: status reads the editor, and look and exec validate whole b
try std.testing.expect(std.mem.startsWith(u8, rows.next().?, "pid "));
try std.testing.expect(std.mem.startsWith(u8, rows.next().?, "version "));
try std.testing.expectEqualStrings(s.at("panes {d}", .{lines(try s.read("/index"))}), rows.next().?);
- try std.testing.expect(rows.next() == null);
+ // A window adds whether the pointer is over it (Handover asks every window).
+ if (rows.next()) |row| {
+ try std.testing.expect(std.mem.eql(u8, row, "pointer in") or std.mem.eql(u8, row, "pointer out"));
+ try std.testing.expect(rows.next() == null);
+ }
const st = try s.stat("/status");
try expectEqual(@as(u64, status.len), st.size);
try expectEqual(@as(u16, 0o444), st.mode & 0o777);