summaryrefslogtreecommitdiff
path: root/test/process/tty_boot.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/process/tty_boot.zig')
-rw-r--r--test/process/tty_boot.zig72
1 files changed, 12 insertions, 60 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");