diff options
Diffstat (limited to 'test/panes.zig')
| -rw-r--r-- | test/panes.zig | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/panes.zig b/test/panes.zig index fd974b6c..127043a2 100644 --- a/test/panes.zig +++ b/test/panes.zig @@ -1714,6 +1714,8 @@ const OutputTests = struct { test "Callstack aligns source below locations and keeps exact emphasis and navigation" { const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 80, .rows = 30 }); defer p.deinit(); + // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6). + p.settings.jumps = .@"new-pane"; const source = " pub fn caller(\n value: u32,\n ) void {\n work(value);\n }\n"; const pane = try TreeContextTests.setZigFile(p, source); const input = try std.fmt.allocPrint(p.gpa, "╰──┬ {s}:1:12-17 caller\n@callstack-match ╰─ {s}:4:9-12 work(value);\n", .{ pane.file.?.path, pane.file.?.path }); @@ -1755,6 +1757,8 @@ const OutputTests = struct { test "Callstack signatures share unsaved tree context and keep guides out of Look selections" { const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 110, .rows = 30 }); defer p.deinit(); + // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6). + p.settings.jumps = .@"new-pane"; const source = "const Box = struct {\n" ++ " pub fn caller(\n" ++ " value: u32,\n" ++ @@ -1848,6 +1852,8 @@ const OutputTests = struct { test "Locations context uses unsaved sources and navigation visits only matches" { const p = try Pardes.init(std.testing.allocator, .{ .tty_only = true, .cols = 100, .rows = 30 }); defer p.deinit(); + // About a jump opening a pane: `Jumps new-pane` (SPEC §6.6). + p.settings.jumps = .@"new-pane"; p.locations_config.layout = .@"inline"; const source = "const Box = struct {\n" ++ " pub fn run() void {\n" ++ @@ -3030,7 +3036,7 @@ const TerminalTests = struct { // background, and wraps the glyph to the next row. A head OWNS its column, // so skipping it the way a tail is skipped left the row's final column bare. for ([_]panes.Text.Mode{ .tty, .normal }) |mode| { - const p = try Pardes.init(testing.allocator, .{ .startup_config = "Theme helix\n", .tty_only = true, .cols = 16, .rows = 8 }); + const p = try Pardes.init(testing.allocator, .{ .startup_config = "Theme helix\n", .tty_only = true, .cols = 16, .rows = 9 }); defer p.deinit(); while (p.nextEffect()) |_| {} const pane = p.panes[0].?; @@ -3215,7 +3221,7 @@ const TerminalTests = struct { test "an edit overlay never changes tty-mode ansi colors" { const testing = std.testing; - const p = try Pardes.init(testing.allocator, .{ .startup_config = "Theme helix\n", .tty_only = true, .cols = 18, .rows = 6 }); + const p = try Pardes.init(testing.allocator, .{ .startup_config = "Theme helix\n", .tty_only = true, .cols = 18, .rows = 7 }); defer p.deinit(); while (p.nextEffect()) |_| {} const pane = p.panes[0].?; |
