summaryrefslogtreecommitdiff
path: root/test/session.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-06 11:38:06 -0300
committerGabriel Schneider <[email protected]>2026-11-06 12:03:00 -0300
commitf922f8b5db1f3b92d954c43860c32cd251d5bc55 (patch)
tree25f1dacb589db526060c2e4dd11b8cbcf5121123 /test/session.zig
parent0b4142e6704c851f395da2cd8b74954272dadf45 (diff)
downloadpardes-f922f8b5db1f3b92d954c43860c32cd251d5bc55.tar.gz
pardes-f922f8b5db1f3b92d954c43860c32cd251d5bc55.zip
kinds #20, their tests and docs: T1's sessions are a terminal without graphics, so a PDF's key test is the base's text-layer one again beside the strip's (Session.graphics gives a frontend pictures), /addons says 2.2; pane cases for the hand over a link and a touchpad's fraction; reference.typ and the changelog say what a PDF does with and without graphics and what 2.2 added
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/session.zig')
-rw-r--r--test/session.zig8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/session.zig b/test/session.zig
index 8b8ec17f..d5f5cae8 100644
--- a/test/session.zig
+++ b/test/session.zig
@@ -416,6 +416,14 @@ pub const Session = struct {
try s.write("/ctl", s.at("Addon load {s}\n", .{real}));
}
+ /// A frontend that shows pictures (a window's, a terminal's with kitty
+ /// graphics): a PDF's pages, not its text layer.
+ pub fn graphics(s: *Session) void {
+ const p: *Pardes = @ptrCast(@alignCast(s.core));
+ p.update(.{ .frontend = .{ .windowed = false, .native_images = true } });
+ s.drain();
+ }
+
/// A Look of `path` at the root (one relative to the working directory
/// made absolute first); the serial of the pane with the keyboard after.
/// A PDF loads the pdf addon first.