From 18a26b41ce79aa64c2b16ffa7c8fe878d6bba927 Mon Sep 17 00:00:00 2001 From: vangel76 Date: Sat, 7 Nov 2026 12:22:51 +0100 Subject: [PATCH] layout tests: give a #4250 widow test a paragraph-length range that fits the pinned test fonts With the fixed test fonts the paragraph with a widow needs fewer repeats than the search range started at. Co-Authored-By: Claude Sonnet 5.5 --- crates/layout/src/tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/layout/src/tests.rs b/crates/layout/src/tests.rs index 1517ec9d0f..6b0b842cdf 100644 --- a/crates/layout/src/tests.rs +++ b/crates/layout/src/tests.rs @@ -6460,7 +6460,7 @@ fn a_float_anchored_on_a_line_a_footnote_pushes_on_is_drawn_on_the_next_page() { #[test] fn a_float_anchored_on_a_line_widow_control_takes_on_is_drawn_on_the_next_page() { // A paragraph of three pages whose last two lines are on the third only by widow control. - let (mut d, l) = (150..300) + let (mut d, l) = (100..300) .map(|k| Document::from_text(&"The quick brown fox jumps over the lazy dog. ".repeat(k))) .map(|d| { let l = lay(&d);