summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/daemon.py6
-rw-r--r--test/panes.zig2
-rw-r--r--test/replicas.zig2
3 files changed, 5 insertions, 5 deletions
diff --git a/test/daemon.py b/test/daemon.py
index 051297a8..5bdf1fc4 100644
--- a/test/daemon.py
+++ b/test/daemon.py
@@ -649,9 +649,9 @@ def pdf_window(binary, gui_binary):
"""A PDF in a terminal's detached session (the pdf addon its prefix
installs, `<prefix>/lib/pardes/addons/pdf.so`), a window client attached
and its wheel turned over the PDF: the session's page moves, the
- window's digest is the session's, and the window, which runs no addon
- code, draws the session's frames of it. Skipped when the build has no
- pdf.so."""
+ window's digest is the session's, and the window, which runs the
+ addon's code itself (its state is plain: PA_PLAIN), draws its own
+ pages from the file. Skipped when the build has no pdf.so."""
lib = Path(binary).resolve().parent.parent / 'lib' / 'pardes' / 'addons' / 'pdf.so'
if not lib.exists():
print(f'daemon: no {lib}: the PDF window case skipped')
diff --git a/test/panes.zig b/test/panes.zig
index 34c81801..a9a22351 100644
--- a/test/panes.zig
+++ b/test/panes.zig
@@ -3937,7 +3937,7 @@ const PdfAddon = struct {
else
try std.testing.expectEqualDeep(@field(s, name), @field(t, name));
}
- // Its place: what its kind says, and the Shadow's copy of it.
+ // Its place: what its kind says, and the loaded copy of it.
var here: [32]u8 = undefined;
var there: [32]u8 = undefined;
try std.testing.expectEqualStrings(pardes.Kind.where(s, &here), pardes.Kind.where(t, &there));
diff --git a/test/replicas.zig b/test/replicas.zig
index 55efd124..a84b826f 100644
--- a/test/replicas.zig
+++ b/test/replicas.zig
@@ -680,7 +680,7 @@ fn push(q: *std.PriorityQueue(Msg, void, Msg.order), nn: *u64, m: Msg) !void {
fn flushAll(sc: *replica.Screens, core: *pardes.Pardes, ps: []const u16, list: *std.ArrayListUnmanaged([]u8), q: *std.PriorityQueue(Msg, void, Msg.order), nn: *u64, now: u64, dl: []Link, rnd: std.Random, ow: u64, jt: u64, vs: *std.AutoHashMapUnmanaged(u64, u64), tot: *Totals) !void {
for (ps, 0..) |peer, c| {
list.clearRetainingCapacity();
- // No pane of a kind here: the view a Shadow is painted for is moot.
+ // Terminals alone cross: the view is not read.
try sc.flush(core, peer, 0, list);
for (list.items) |bytes| {
tot.deltas += 1;