summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/pdf.zig8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/pdf.zig b/test/pdf.zig
index de7afb95..722e28b4 100644
--- a/test/pdf.zig
+++ b/test/pdf.zig
@@ -2121,7 +2121,7 @@ test "a PDF's jumps: Back after a far jump returns to the exact offset, two plac
look.lookAt(p, id, if (pv.page_count > 3000) ":3000" else ":4");
try jumpFrame(p);
try std.testing.expect(pv.page >= 3);
- p.jumpBy(-1);
+ pardes.Jump.jumpBy(p, -1);
try jumpFrame(p);
try std.testing.expectEqual(@as(usize, 1), pv.page);
try std.testing.expectApproxEqAbs(near, pv.document_scroll_y, 0.5);
@@ -2157,12 +2157,12 @@ test "a PDF's jumps: JumpScope file keeps to the PDF, and a closed PDF reopens a
p.active = doc;
_ = try stripAtPlace(p, pane, 3, 0.5);
// Back from the PDF keeps to it: its own earlier place, not the text.
- p.jumpBy(-1);
+ pardes.Jump.jumpBy(p, -1);
try jumpFrame(p);
try std.testing.expectEqual(doc, p.active);
try std.testing.expectApproxEqAbs(first, pane.pdf.?.document_scroll_y, 0.5);
// Closed, its entries stay; Back from the text reopens it at the place.
- p.jumpBy(1);
+ pardes.Jump.jumpBy(p, 1);
try jumpFrame(p);
try p.removePane(doc, null);
try jumpFrame(p);
@@ -2171,7 +2171,7 @@ test "a PDF's jumps: JumpScope file keeps to the PDF, and a closed PDF reopens a
try std.testing.expect(closed);
var tries: usize = 0;
while (tries < 4) : (tries += 1) {
- p.jumpBy(-1);
+ pardes.Jump.jumpBy(p, -1);
try jumpFrame(p);
if (p.panes[p.active].?.pdf != null) break;
}