summaryrefslogtreecommitdiff
path: root/test/pdf.zig
diff options
context:
space:
mode:
Diffstat (limited to 'test/pdf.zig')
-rw-r--r--test/pdf.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/pdf.zig b/test/pdf.zig
index 16522af6..ef05f789 100644
--- a/test/pdf.zig
+++ b/test/pdf.zig
@@ -148,7 +148,7 @@ const PdfLinkTests = struct {
fn hover(p: *Pardes, cell: Cell) void {
p.update(.{ .mouse = .{ .button = .none, .kind = .motion, .col = cell.col, .row = cell.row } });
- for (0..(config.look_preview_delay_frames orelse 0)) |_| p.update(.tick);
+ for (0..config.look_preview_delay_frames) |_| p.update(.tick);
}
test "PDF links hover clears on leave page and reload while right drag chooses Look text" {
@@ -1764,7 +1764,8 @@ test "PDF native mouse selection, Look, and highlights share page geometry" {
// presentation state. In particular it must not borrow the click path,
// whose page activation and persistent selection are intentional effects
// of a gesture rather than observation.
- if (config.look_preview_delay_frames) |delay| {
+ {
+ const delay = config.look_preview_delay_frames;
const active_before = p.active;
const page_before = pv.page;
const scroll_before = pv.document_scroll_y;