diff options
Diffstat (limited to 'test/behaviour/callstack.zig')
| -rw-r--r-- | test/behaviour/callstack.zig | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/behaviour/callstack.zig b/test/behaviour/callstack.zig index 42448031..7c8b5d50 100644 --- a/test/behaviour/callstack.zig +++ b/test/behaviour/callstack.zig @@ -59,3 +59,17 @@ test "callstack: CallstackDepth bounds the walk, its last row inviting a Callsta \\ ); } + +test "callstack: Callstack run in +Callstack asks nothing, as only a file's pane asks a language server" { + var tmp = std.testing.tmpDir(.{}); + defer tmp.cleanup(); + var s = try Session.initLanguage(std.testing.allocator); + defer s.deinit(); + const main = try openMain(&s, &tmp); + try s.write(s.at("/pane/{d}/ctl", .{main}), "Callstack\n"); + const tree = try s.focused(); + const shown = try s.read(s.at("/pane/{d}/body", .{tree})); + try std.testing.expect(try s.refused(s.at("/pane/{d}/ctl", .{tree}), "Callstack\n") != 0); + try std.testing.expectEqualStrings("Callstack: only a file's pane asks a language server", s.said); + try s.expect(s.at("/pane/{d}/body", .{tree}), shown); +} |
