summaryrefslogtreecommitdiff
path: root/test/panes.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/panes.zig')
-rw-r--r--test/panes.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/panes.zig b/test/panes.zig
index 2d3c345f..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" ++