mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-17 16:06:33 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
1 parent
7ca1dd1802
commit
18a26b41ce
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user