summaryrefslogtreecommitdiff
path: root/test/panes.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-24 19:59:30 -0300
committerGabriel Schneider <[email protected]>2026-11-24 19:59:30 -0300
commit68155195b3b968682a29392bdc5e5d3ad8c9d0a6 (patch)
treea88c10b41d6c96b75f859c6a9d40a3d7b5ecc676 /test/panes.zig
parent173b0b8a4c854715e8bb697efc5c066927b7b671 (diff)
downloadpardes-68155195b3b968682a29392bdc5e5d3ad8c9d0a6.tar.gz
pardes-68155195b3b968682a29392bdc5e5d3ad8c9d0a6.zip
TagState: a root struck in a pump wakes the loop for the frame that dates it (a fix on top of item 2, uqopxwqz, frozen), and the pane and behaviour tests that read the old leader: THE FAULT: a pump advances its clock before it settles its keys (Pardes.pump), so a root's key leaves its delay undated (TagState.asked) and TagState.wake left an undated root out, as nextWake leaves Del's question's: with nothing else due the loop slept until the next key and the level never showed (the process suite's find snapshot drew ` ␣ f …` after 400 ms still); a user hit it at every SPC, g, z, m, [, ], C-w and " in a terminal or a window; THE FIX: an undated root asks for the next frame (TagState.wake), whose advance dates it, then for its level's time; TEST FIRST: TagState.zig "a root struck in a pump, after its advance, wakes the loop for the next frame, which dates it, then for its level" (on uqopxwqz's wake: nextWake null after the key); the tests of the old behaviour: test/panes.zig's generated Help replaced by `Help h`, the word (SPC h ? is Help in the tag), test/behaviour/modes.zig's window mode (the pane with the keyboard shows window mode's head after its name, not its own words: looked for as `name `), test/behaviour/keys.zig's PDF (the leader's cell `␣` in the tag, not the SPC chip; a key the PDF takes still takes the leader away); behaviour-test 277 of 277 with these
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test/panes.zig')
-rw-r--r--test/panes.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/panes.zig b/test/panes.zig
index ba3466fb..fd974b6c 100644
--- a/test/panes.zig
+++ b/test/panes.zig
@@ -2073,7 +2073,8 @@ const OutputTests = struct {
try std.testing.expect(help.body.vsel.active);
try std.testing.expect(help.body.vsel.row > 5);
try std.testing.expect(help.body.cur_row != help.body.vsel.row);
- for (" h?") |key| p.update(.{ .key = .{ .cp = key } });
+ // `Help h`, the word (SPC h ? is Help in the tag now: walk UI).
+ try std.testing.expect(p.executeBuiltinLine(id, "Help h"));
try std.testing.expectEqual(id, p.view().active);
const content = help.file.?.content;
try std.testing.expect(std.mem.startsWith(u8, content, "pardes builtins under SPC h\n"));