diff options
Diffstat (limited to 'test/behaviour/panes.zig')
| -rw-r--r-- | test/behaviour/panes.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/behaviour/panes.zig b/test/behaviour/panes.zig index 4d4c812c..96bae187 100644 --- a/test/behaviour/panes.zig +++ b/test/behaviour/panes.zig @@ -170,6 +170,8 @@ test "panes: a second lock is refused until the holder unlocks or closes, and bi test "panes: an unsaved file's tag is its name alone, its dirty file says it is unsaved" { var s = try Session.initFile(std.testing.allocator, "before\n"); defer s.deinit(); + // A held pane (Keep): its tag as it was before the walk, no `Keep` word (SPEC §6.5). + try s.write(s.at("/pane/{d}/exec", .{try s.focused()}), "Keep\n"); const n = try s.focused(); const tag = s.at("/pane/{d}/tag", .{n}); const clean = try s.read(tag); @@ -265,6 +267,8 @@ test "panes: a pane its whole text fits in never scrolls to keep a margin" { 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"); const n = try s.focused(); // A second pane under it, as acme's placement puts one: right under the // three lines, which leaves the file exactly three body rows. |
