diff options
Diffstat (limited to 'test/kitty.zig')
| -rw-r--r-- | test/kitty.zig | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/kitty.zig b/test/kitty.zig index 70e20139..ad70f453 100644 --- a/test/kitty.zig +++ b/test/kitty.zig @@ -64,9 +64,9 @@ const Rig = struct { read: [pardes.MAX_PANES]std.ArrayList(u8) = @splat(.empty), fn init(shells: u8) !Rig { - // f=100 decodes through pardes's own decoder (stb_image), which the - // shells start at launch. - pardes.image.start(std.testing.io, gpa); + // f=100 decodes through wuffs, its resize through stb_image_resize, + // which the shells start at launch. + pardes.TerminalImages.start(std.testing.io, gpa); // ghostty warns of every refused command; the refusals are the point. std.testing.log_level = .err; // A core boots one shell or the classic three. @@ -86,7 +86,7 @@ const Rig = struct { for (&r.read) |*b| b.deinit(gpa); r.frame.deinit(); r.p.deinit(); - pardes.image.stop(); + pardes.TerminalImages.stop(); } fn drain(r: *Rig) void { @@ -398,7 +398,7 @@ test "kitty: a=p places one image twice by placement id, a source rect crops it, const crop = cropped orelse return error.CroppedPlacementMissing; try std.testing.expectEqual(o.x + 9, crop.dst.x); try std.testing.expectEqual(@as(u16, 1), crop.dst.w); - const g: pardes.image.NativeGeometry = .{ .src = crop.src, .dst = crop.at.? }; + const g: pardes.NativeGeometry = .{ .src = crop.src, .dst = crop.at.? }; try std.testing.expectEqual(@as(u32, 2), g.src.x); try std.testing.expectEqual(@as(u32, 2), g.src.w); // Put again under the same id, placement 1 moves; it is not doubled. @@ -1212,7 +1212,7 @@ test "kitty: an image wider than its pane is cut at the pane's edge, never drawn try std.testing.expect(drawn[0].dst.x + drawn[0].dst.w <= o.x + r.pane(0).cols); try std.testing.expect(drawn[0].dst.x + drawn[0].dst.w <= right); // And the pixels it takes are only that cell's. - const g: pardes.image.NativeGeometry = .{ .src = drawn[0].src, .dst = drawn[0].at.? }; + const g: pardes.NativeGeometry = .{ .src = drawn[0].src, .dst = drawn[0].at.? }; try std.testing.expect(g.dst.w <= @as(u32, drawn[0].dst.w) * 10); } |
