summaryrefslogtreecommitdiff
path: root/src/addon_test.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/addon_test.zig')
-rw-r--r--src/addon_test.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/addon_test.zig b/src/addon_test.zig
index 7c9950d7..2e673145 100644
--- a/src/addon_test.zig
+++ b/src/addon_test.zig
@@ -138,13 +138,13 @@ fn run(io: std.Io, gpa: std.mem.Allocator, lib: []const u8, script_path: ?[]cons
if (!p.executeBuiltinLine(at, line)) try out.print("not a word here: {s}\n", .{verb});
}
drain(p);
- // A tick owed (a pane opened or loaded here, outside a step) and a
- // view whose facts a frame's layout changed (its tag wrapped), as
- // a host steps for them.
- if (p.panes[id.?]) |pane| if (window(p, id.?) != null and (pane.addon.?.next_tick == 1 or Kind.viewOwed(p, pane.addon.?, id.?))) {
+ // The session's own steps owed (a tick asked outside a step, a view
+ // whose facts moved, a focus), as a host's pump takes them (17.2).
+ var owed: usize = 0;
+ while (owed < 4 and window(p, id.?) != null and (Kind.wake(p) orelse std.math.maxInt(u64)) <= @max(1, p.clock.stepped_ns)) : (owed += 1) {
p.update(.tick);
drain(p);
- };
+ }
try show(p, gpa, id.?, out, opened or is(verb, "size"));
if (Kind.breach.len > 0 and !said) try out.print("addon-test: {s}\n", .{Kind.breach.slice()});
said = Kind.breach.len > 0;