summaryrefslogtreecommitdiff
path: root/test/process
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-23 16:06:49 -0300
committerGabriel Schneider <[email protected]>2026-11-23 17:06:48 -0300
commit73c916113fd8ca732e3e58586399020c2e291871 (patch)
treeb9c88957384692a964bf0a90383a346220fde257 /test/process
parent047a85e32c30142bddab3c10bb208607c5bed933 (diff)
downloadpardes-73c916113fd8ca732e3e58586399020c2e291871.tar.gz
pardes-73c916113fd8ca732e3e58586399020c2e291871.zip
help: the process cases that show the Help pane read it as it is now, their goldens with them, builtins-gui.json regenerated, and Compare's row said in words: test/process/tty_boot.zig's `builtins` case reached the full index's words with no SPC path by `g e` and forty wheel ticks up (a count every builtin added moved); with each word's documentation under its row they are some 220 lines down, so the case searches for Look's row, `/^ +Look ` and Enter (the one line that starts with blanks and `Look `: the documentation's lines start with a letter), and B2 on Tutor in the SPC h group at its row now (24); the `leader` case waits for the SPC t group's first two rows (`SPC t a Ascii`, `SPC t c Changes`), the rest being below its 41 rows now; tty_terminals.zig's `ttyhelp` waits for `SPC ? Help`; the three goldens (test/snapshots/builtins.golden, leader.golden, ttyhelp.golden) updated a case at a time (`-- --update <case>`) and read: each Help capture now shows the rows with their documentation under them, the builtins case's query pane `/^ +Look` and its row `@p2:220:1`, Tutor opened by B2 from the index; docs/typ/builtins-gui.json regenerated (`text` in it, every doc the table's); Compare's second paragraph says its pair's row in words (the two points, how many changes lie between them, their first and last days) where the format `from..to N changes dates` lost a blank where the `///` wrapped; docs/typ/builtins-tui.json with it; the tui suites on the tree before this change's Compare edit: core-test 942/1108 (166 skipped), shell-test 1150/1153 (3 skipped), pane-test 182/183 (1 skipped), behaviour-test 277/277 and `-- --replay` 20 seeds of 70 steps 0 failures, term-test 17/17, kitty-test 45/45, process-test 0 of 146 failed (2 skipped), Debug, load 3.6-10; `zig build book` builds (128/128), its glossary each word's whole documentation; on this change: the frame and perf gate vs tree6 (`gpu/help1-g`, 1,648 s): 77 frames, 0 differ, gui unit-test 1748/1752 (no failure the base has not), perfab PASS (pictures identical in 10 runs, corpus2x -0.002%), perfops 120 of 121 within 0.1%, the one over the base's own (`open on small` +0.171%, the base's table +0.167%); the cross-builds (macOS, macOS aarch64, FreeBSD) build; the base's own counts here: core-test 941/1107, shell-test 1149/1152
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test/process')
-rw-r--r--test/process/tty_boot.zig72
-rw-r--r--test/process/tty_terminals.zig2
2 files changed, 13 insertions, 61 deletions
diff --git a/test/process/tty_boot.zig b/test/process/tty_boot.zig
index 231469f1..6373de84 100644
--- a/test/process/tty_boot.zig
+++ b/test/process/tty_boot.zig
@@ -124,62 +124,14 @@ fn builtins(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
try t.key("space ?");
try t.wait(10000, "pardes builtins: each one's keys and its name");
try t.wait(10000, "ClipPasteBefore");
- try t.key("g e");
- // Every builtin added since adds an index line, and one wheel tick is one row
- // (config.wheel_rows): scroll far enough to expose Look and Exec above the
- // bottom viewport while keeping the same pane geometry for the later clicks.
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
- try t.wheel("up", "110", 50);
+ // The words with no SPC path come last, each under its documentation:
+ // a search for Look's row, the one line that starts with blanks and
+ // `Look ` (its documentation's lines start with a letter).
+ try t.key("/");
+ try t.send("^ +Look ");
+ try t.key("enter");
try t.wait(10000, "Look enter, right-click");
try t.wait(10000, "Exec tab, middle-click");
- try t.wait(10000, "Filter");
- try t.wait(10000, "Theme");
try t.stable(700, 15000);
// n moves through look-able text; it must not execute command names.
@@ -196,8 +148,9 @@ fn builtins(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
try t.wait(10000, "Tutor");
try t.stable(700, 15000);
try t.snap("docs-group");
- try t.press("middle", "@Tutor", 16);
- try t.release("middle", "@Tutor", 16);
+ // Tutor's row, under the documentation of the three before it
+ try t.press("middle", "@Tutor", 24);
+ try t.release("middle", "@Tutor", 24);
try t.wait(10000, "PARDES TUTOR");
try t.stable(700, 15000);
try t.snap("tutor-from-index");
@@ -568,10 +521,9 @@ fn leader(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
// PDF commands depend on the build; these toggles do not.
try t.key("space t ?");
try t.wait(10000, "under SPC t");
- try t.wait(10000, "Ascii");
- try t.wait(10000, "Palette");
- try t.wait(10000, "Petscii");
- try t.wait(10000, "Wrap");
+ // its first rows: each word's documentation under it, the rest below
+ try t.wait(10000, "SPC t a Ascii");
+ try t.wait(10000, "SPC t c Changes");
// SPC w is Window itself now, not a group; the column group stands in
try t.key("space c ?");
try t.wait(10000, "under SPC c");
diff --git a/test/process/tty_terminals.zig b/test/process/tty_terminals.zig
index dfb027e2..9f7c9308 100644
--- a/test/process/tty_terminals.zig
+++ b/test/process/tty_terminals.zig
@@ -231,7 +231,7 @@ fn ttyhelp(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
// The bare-tty boot now opens an empty pane under the shell, so the index is
// half as tall: wait on a row that is on screen. What the leader route
// produced is the snapshot below, not this.
- try t.wait(10000, "SPC Y ClipYankMain");
+ try t.wait(10000, "SPC ? Help");
try t.stable(700, 15000);
try t.snap("leaderworks");
try t.done();