diff options
Diffstat (limited to 'test/behaviour/modes.zig')
| -rw-r--r-- | test/behaviour/modes.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/behaviour/modes.zig b/test/behaviour/modes.zig index a50cfb0e..0f7c9d26 100644 --- a/test/behaviour/modes.zig +++ b/test/behaviour/modes.zig @@ -17,6 +17,8 @@ test "modes: Esc in normal mode alternates between two panes of the same kind" { const at = dir[0..try tmp.dir.realPath(std.testing.io, &dir)]; var s = try Session.initFile(std.testing.allocator, "a\n"); defer s.deinit(); + // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6). + try s.write("/ctl", "Jumps new-pane\n"); const a = try s.focused(); try s.write("/look", s.at("{s}/b.txt\n", .{at})); const b = try s.focused(); @@ -133,6 +135,8 @@ fn outlined(s: *Session, lit: []const u8, names: []const []const u8) ![]const u8 test "modes: Ctrl-w outlines a pane, h j k l move the outline, and Enter, Esc, : or a pane's letter gives it the keyboard" { var s = try Session.initFile(std.testing.allocator, "left\n"); defer s.deinit(); + // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6). + try s.write("/ctl", "Jumps new-pane\n"); const a, const b, const c = try threePanes(&s); const names = &[_][]const u8{ "/a.txt", "/b.txt", "/c.txt" }; try s.keys("\x17"); @@ -176,6 +180,8 @@ fn listed(s: *Session, n: u32) !bool { test "modes: in window mode d deletes the outlined pane, asking k or j between two, c collapses it, and the mode stays on" { var s = try Session.initFile(std.testing.allocator, "top\n"); defer s.deinit(); + // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6). + try s.write("/ctl", "Jumps new-pane\n"); const top = try s.focused(); try s.write(s.at("/pane/{d}/exec", .{top}), "New\n"); const mid = try s.focused(); |
