diff options
Diffstat (limited to 'test/terminal.zig')
| -rw-r--r-- | test/terminal.zig | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/terminal.zig b/test/terminal.zig index 7e7106a1..bad70081 100644 --- a/test/terminal.zig +++ b/test/terminal.zig @@ -25,7 +25,6 @@ const close = Term.close; const grid = Term.grid; const modes = Term.modes; const prompt = Term.prompt; -const scroll = Term.scroll; const scrollback = Term.scrollback; const commandOutput = Term.commandOutput; const filterOf = emu.filterOf; @@ -110,7 +109,7 @@ test "document construction allocates only the pane and has inert terminal defau try std.testing.expectEqual(Term.Prompt{}, prompt(pane.terminal)); pane.scrollBy(100); pane.followOutput(); - pane.resizeGrid(80, 24); + pane.resizeGrid(0, 80, 24); try std.testing.expectEqual(Term.Grid{}, grid(pane.terminal)); try std.testing.expectEqualStrings("", try scrollback(pane.terminal, allocator)); try std.testing.expect(!failing.has_induced_failure); @@ -139,7 +138,7 @@ test "terminal state keeps parser fragments and sends emulator replies through i try std.testing.expectEqual(@as(u16, 0), state.reply_len); } -test "a terminal's dump restores the cells it drew, its history and where its view was" { +test "a terminal's dump restores the cells it drew and its history (where a view stands is the view's, dumped with its pane)" { const gpa = std.testing.allocator; const p = try Pardes.init(gpa, .{ .tty_only = true, .cols = 40, .rows = 12 }); defer p.deinit(); @@ -150,7 +149,6 @@ test "a terminal's dump restores the cells it drew, its history and where its vi var line: [16]u8 = undefined; pane.feedOutput(p, std.fmt.bufPrint(&line, "line {d}\r\n", .{i}) catch unreachable); } - scroll(pane.terminal.?, -5); const bytes = try pardes.walk.save(State, gpa, pane.terminal.?); defer gpa.free(bytes); var arena: std.heap.ArenaAllocator = .init(gpa); |
