summaryrefslogtreecommitdiff
path: root/test/pdf_scroll_bench.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-06 15:58:05 -0300
committerGabriel Schneider <[email protected]>2026-11-06 17:53:43 -0300
commit2ddd5bcbe8d470c00b045af5822418fe429357bc (patch)
tree47d837b2151a7393bdcf5ba362b8c2f6bf457f55 /test/pdf_scroll_bench.zig
parente9f9f65ace7650a02cee6bf2b2eb466522485834 (diff)
downloadpardes-2ddd5bcbe8d470c00b045af5822418fe429357bc.tar.gz
pardes-2ddd5bcbe8d470c00b045af5822418fe429357bc.zip
kinds #37, tests and docs for ABI 3: the image dump tests reopen from the path (through the same /n/os mount, and a file gone waits saying so until a watch or a Look opens it), the PDF view tests assert the art words in every view and each view told, /addons says 3.0 and a 2.2 fake is refused, reference.typ's Addons section and the changelog say ABI 3
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/pdf_scroll_bench.zig')
-rw-r--r--test/pdf_scroll_bench.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pdf_scroll_bench.zig b/test/pdf_scroll_bench.zig
index 93067d03..58e7cfb0 100644
--- a/test/pdf_scroll_bench.zig
+++ b/test/pdf_scroll_bench.zig
@@ -228,7 +228,7 @@ fn probeTravel(config: Config) Travel {
const slot = pdfPane(core).addon.?;
if (slot.thumb_span <= 0) fatal("{s}: the strip never laid out", .{config.path});
// The strip is the window over the share of it shown.
- const window_px = @as(f64, @floatFromInt(pardes.Kind.viewOf(core, core.view().active).rows)) * @as(f64, @floatFromInt(config.cell.h));
+ const window_px = @as(f64, @floatFromInt(pardes.Kind.viewOf(core, core.live, core.view().active).rows)) * @as(f64, @floatFromInt(config.cell.h));
var pages: u32 = 0;
const prefix = slot.prefix.slice();
if (std.mem.indexOfScalar(u8, prefix, '/')) |slash| pages = std.fmt.parseInt(u32, prefix[slash + 1 .. prefix.len - 1], 10) catch 0;