diff options
Diffstat (limited to 'dev')
| -rw-r--r-- | dev/file_watch.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/file_watch.zig b/dev/file_watch.zig index fd6bf06f..85b099bc 100644 --- a/dev/file_watch.zig +++ b/dev/file_watch.zig @@ -994,7 +994,7 @@ test "theme watch reloads valid ZON and keeps the last theme across a bad save" request.generation, true, )); - try std.testing.expectEqual(@as(?[3]u8, .{ 1, 2, 3 }), core.theme().bg); + try std.testing.expectEqual(@as(?[3]u8, .{ 1, 2, 3 }), core.theme().page); try std.testing.expect(watches[theme_slot] != null); var second = first; @@ -1004,11 +1004,11 @@ test "theme watch reloads valid ZON and keeps the last theme across a bad save" try std.zon.stringify.serialize(second, .{ .whitespace = true }, &second_zon.writer); try tmp.dir.writeFile(io, .{ .sub_path = "mine.zon", .data = second_zon.written() }); try std.testing.expect(!reloadTheme(core, gpa, &watches, false)); - try std.testing.expectEqual(@as(?[3]u8, .{ 9, 8, 7 }), core.theme().bg); + try std.testing.expectEqual(@as(?[3]u8, .{ 9, 8, 7 }), core.theme().page); try tmp.dir.writeFile(io, .{ .sub_path = "mine.zon", .data = ".{ .name = " }); try std.testing.expect(!reloadTheme(core, gpa, &watches, false)); - try std.testing.expectEqual(@as(?[3]u8, .{ 9, 8, 7 }), core.theme().bg); + try std.testing.expectEqual(@as(?[3]u8, .{ 9, 8, 7 }), core.theme().page); } test "a watched file deleted wakes the watch at once, and its pane says so" { |
