diff options
Diffstat (limited to 'test/process/tty_terminals.zig')
| -rw-r--r-- | test/process/tty_terminals.zig | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/test/process/tty_terminals.zig b/test/process/tty_terminals.zig index 86eab7b7..1b14a72f 100644 --- a/test/process/tty_terminals.zig +++ b/test/process/tty_terminals.zig @@ -214,7 +214,7 @@ fn ttyhelp(gpa: std.mem.Allocator, exe: [:0]const u8) !void { var t = try Tty.init(gpa, exe, "ttyhelp"); defer t.deinit(); try t.start(31, 100, &.{}); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.stable(700, 20000); try t.snap("boot"); try t.press("middle", "@Help", 1); @@ -483,7 +483,7 @@ fn psearch(gpa: std.mem.Allocator, exe: [:0]const u8) !void { var t = try Tty.init(gpa, exe, "psearch"); defer t.deinit(); try t.start(31, 140, &.{}); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.stable(700, 20000); // print something to search (a bare boot starts in tty mode; the marker is // split so the echoed command line, which normal mode hides anyway, can never @@ -539,20 +539,20 @@ fn psearch(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // The left click first is the price of the step above: it left the cursor in // the results buffer, and c-b is read by the ACTIVE pane — there is no tty // behind a +Search to toggle. - try t.press("left", "5", 5); - try t.release("left", "5", 5); + try t.press("left", "5", 4); + try t.release("left", "5", 4); try t.stable(400, 5000); try t.key("c-b"); try t.stable(600, 8000); - try t.press("right", "5", 5); - try t.release("right", "5", 5); + try t.press("right", "5", 4); + try t.release("right", "5", 4); try t.stable(700, 10000); try t.snap("ttyinert"); // back in normal mode the same click searches for MARK try t.key("c-b"); try t.stable(600, 8000); - try t.press("right", "5", 5); - try t.release("right", "5", 5); + try t.press("right", "5", 4); + try t.release("right", "5", 4); try t.wait(10000, "@p1:2:3"); try t.stable(700, 15000); try t.snap("rightsearch"); @@ -593,7 +593,7 @@ fn respawn(gpa: std.mem.Allocator, exe: [:0]const u8) !void { defer t.deinit(); // A row more than its panes take: the notice row under them. try t.start(32, 140, &.{ "-n", "3" }); - try t.wait(8000, "Newcol Joincol"); + try t.wait(8000, "Newcol Help Exit"); try t.stable(700, 20000); // middle-click Del on the lower-left pane's tag: the pane id is freed while // its shell process stays alive in the slot @@ -665,9 +665,9 @@ fn cmdexit(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.stable(700, 20000); try t.snap("opened"); // line 1: `sleep 30` keeps the pty, and the pane says exit 0 regardless - try t.press("middle", "7", 4); - try t.drag("middle", "34", 4); - try t.release("middle", "34", 4); + try t.press("middle", "7", 3); + try t.drag("middle", "34", 3); + try t.release("middle", "34", 3); try t.wait(10000, "exit 0"); try t.stable(700, 15000); try t.snap("background"); @@ -675,9 +675,9 @@ fn cmdexit(gpa: std.mem.Allocator, exe: [:0]const u8) !void { // `sleep 30` lives on (job control gives it its own group) and still holds // that pane's pty; here the end of file comes at once, and the exit a second // later, from `false` - try t.press("middle", "7", 5); - try t.drag("middle", "54", 5); - try t.release("middle", "54", 5); + try t.press("middle", "7", 4); + try t.drag("middle", "54", 4); + try t.release("middle", "54", 4); try t.wait(10000, "exit 1"); try t.stable(700, 15000); try t.snap("letgo"); @@ -710,14 +710,14 @@ fn look_fd_deep(gpa: std.mem.Allocator, exe: [:0]const u8) !void { try t.wait(8000, "cwd/a Del Term"); try t.stable(700, 20000); try t.snap("listed"); - try t.press("right", "6", 8); - try t.release("right", "6", 8); + try t.press("right", "6", 7); + try t.release("right", "6", 7); try t.wait(10000, "deep-marker"); try t.stable(700, 15000); try t.snap("fd-path-looked"); // the ls name, from the shell's directory - try t.press("right", "8", 6); - try t.release("right", "8", 6); + try t.press("right", "8", 5); + try t.release("right", "8", 5); try t.wait(10000, "top-marker"); try t.stable(700, 15000); try t.snap("ls-name-looked"); |
