diff options
Diffstat (limited to 'test/behaviour/placement.zig')
| -rw-r--r-- | test/behaviour/placement.zig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/behaviour/placement.zig b/test/behaviour/placement.zig index 05f730d1..467afd1b 100644 --- a/test/behaviour/placement.zig +++ b/test/behaviour/placement.zig @@ -10,6 +10,8 @@ test "placement: an empty active column takes the new pane whole, a look from an const at = dir[0..try tmp.dir.realPath(std.testing.io, &dir)]; var s = try Session.initFile(std.testing.allocator, "x\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 first = try s.focused(); // Its tag has the keyboard: it is the active column, and stays so // when Esc gives the keyboard back. @@ -31,6 +33,8 @@ fn tagRow(s: *Session, name: []const u8) !usize { test "placement: New and 9P's new take the bottom half of the column's last pane" { var s = try Session.initFile(std.testing.allocator, "x\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 first = try s.focused(); try s.write(s.at("/pane/{d}/exec", .{first}), "New\n"); const last = try s.focused(); @@ -83,6 +87,8 @@ test "placement: a look from a pane's text goes under its text when it has many const at = dir[0..try tmp.dir.realPath(std.testing.io, &dir)]; var s = try Session.initFile(std.testing.allocator, "one\ntwo\nthree\n"); defer s.deinit(); + // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6). + try s.write("/ctl", "Jumps new-pane\n"); s.detach(); // Wide enough that a tag with the test's temporary path stays one row, // wherever the checkout is. @@ -117,6 +123,8 @@ test "placement: a look from the middle of a column splits only the pane it came const at = dir[0..try tmp.dir.realPath(std.testing.io, &dir)]; var s = try Session.initFile(std.testing.allocator, "one\n"); defer s.deinit(); + // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6). + try s.write("/ctl", "Jumps new-pane\n"); s.detach(); try s.write("/ctl", "size 100 60\n"); const top = try s.focused(); |
