summaryrefslogtreecommitdiff
path: root/test/output.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/output.zig')
-rw-r--r--test/output.zig19
1 files changed, 8 insertions, 11 deletions
diff --git a/test/output.zig b/test/output.zig
index 31027cfc..70518de8 100644
--- a/test/output.zig
+++ b/test/output.zig
@@ -38,18 +38,15 @@ test "search tint survives wrapping and theme changes while selections remain au
pane.file.?.output = .{ .from = .search };
var frame = std.heap.ArenaAllocator.init(std.testing.allocator);
defer frame.deinit();
- for ([_]bool{ false, true }) |bottom| {
- p.settings.tag_bottom = bottom;
- for ([_]bool{ true, false, true }) |colors| {
- p.settings.colors = colors;
- const surface = try p.render(frame.allocator());
- var marked: usize = 0;
- for (surface.cells) |cell| {
- if (std.meta.eql(cell.style.bg, pardes.Color{ .rgb = p.theme().search_bg.? })) marked += 1;
- }
- try std.testing.expectEqual(@as(usize, if (colors) 3 else 0), marked);
- _ = frame.reset(.retain_capacity);
+ for ([_]bool{ true, false, true }) |colors| {
+ p.settings.colors = colors;
+ const surface = try p.render(frame.allocator());
+ var marked: usize = 0;
+ for (surface.cells) |cell| {
+ if (std.meta.eql(cell.style.bg, pardes.Color{ .rgb = p.theme().search_bg.? })) marked += 1;
}
+ try std.testing.expectEqual(@as(usize, if (colors) 3 else 0), marked);
+ _ = frame.reset(.retain_capacity);
}
// The body changes immediately even when dark chrome is still fading.
try std.testing.expect(p.executeBuiltinLine(0, "Theme daybreak"));