summaryrefslogtreecommitdiff
path: root/test/output.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/output.zig')
-rw-r--r--test/output.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/output.zig b/test/output.zig
index f2a35c01..8f4048f0 100644
--- a/test/output.zig
+++ b/test/output.zig
@@ -103,7 +103,7 @@ test "output callers opt into location highlighting instead of matching prose co
const surface = try p.render(frame.allocator());
const line = modal.lineSlice(file.content, 0);
const before_colon = std.mem.indexOfScalar(u8, line, ':').?;
- const normal: pardes.Color = if (p.theme().fg) |fg| .{ .rgb = fg } else .default;
+ const normal: pardes.Color = if (p.theme().text) |fg| .{ .rgb = fg } else .default;
for (0..before_colon + 2) |byte| {
const cell = outputCell(p, surface, id, byte);
try std.testing.expectEqual(normal, cell.style.fg);
@@ -140,7 +140,7 @@ test "location producers retain rendered location match and diagnostic styles" {
}
if (!diagnostic) {
const number = start + std.mem.indexOf(u8, code, "42").?;
- try std.testing.expectEqual(pardes.Color{ .rgb = p.theme().num }, outputCell(p, surface, id, number).style.fg);
+ try std.testing.expectEqual(pardes.Color{ .rgb = p.theme().number }, outputCell(p, surface, id, number).style.fg);
}
}
}
@@ -454,7 +454,7 @@ test "Mini syntax colors survive themes and rendering without source access" {
const rect = p.view().rects[id];
const x = rect.x + config.GUTTER + panes.File.gutterWidth(mini) + @as(u16, @intCast(column));
const y = p.bodyTop(mini, rect) + @as(u16, @intCast(position.row));
- try std.testing.expectEqualDeep(pardes.Color{ .rgb = p.theme().kw }, surface.at(x, y).style.fg);
+ try std.testing.expectEqualDeep(pardes.Color{ .rgb = p.theme().keyword }, surface.at(x, y).style.fg);
try std.testing.expectEqual(colors, mini.file.?.mini.?.colors.ptr);
try std.testing.expectEqual(@as(usize, 0), mini.file.?.highlights.len);
_ = frame.reset(.retain_capacity);