From 31a7c2baf58152982fad1300a026daca0507a317 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Tue, 3 Nov 2026 21:57:28 +0000 Subject: [PATCH] address review: use a narrow tall page in the bounded-work test --- crates/pdf/src/tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/pdf/src/tests.rs b/crates/pdf/src/tests.rs index 5d51642d1..fa4e119c1 100644 --- a/crates/pdf/src/tests.rs +++ b/crates/pdf/src/tests.rs @@ -681,9 +681,9 @@ fn raster_scale_caps_total_pixels_not_each_side() { #[cfg_attr(target_arch = "wasm32", wasm_bindgen_test::wasm_bindgen_test)] #[cfg_attr(not(target_arch = "wasm32"), test)] fn huge_paper_and_long_notes_export_in_bounded_work() { - // At 1e17 pt adding a rule's 22 pt leaves y unchanged: the rules are counted, not stepped. + // At 1e19 pt adding a rule's 22 pt leaves y unchanged: the rules are counted, not stepped. A narrow page keeps the raster small. let p = deck(1); - let _ = export(&p, &PdfOptions { paper: (1.0e17, 1.0e17), ..opts(PageLayout::Handouts { per_page: 3 }) }); + let _ = export(&p, &PdfOptions { paper: (612.0, 1.0e19), ..opts(PageLayout::Handouts { per_page: 3 }) }); // 20,000 short words of notes, wrapped with the line width kept as words are added. let mut p = deck(1); Arc::make_mut(&mut p.slides[0]).notes = TextBody::from_text(&"ab ".repeat(20_000));