Fix tests after merge: egui MouseWheel source field, keep upstream's pinned fixtures

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
vangel76andClaude Sonnet 5.5 committed 2026-10-26 00:04:01 +01:00
1 parent e2b92cde84
commit 827fc6e07a
3 files changed
+3 -4

No files matched your search

+1 -2
View File
@@ -6947,14 +6947,13 @@ fn an_at_least_row_taller_than_a_page_splits_from_the_top_of_the_next_page() {
/// on, keeps all 80 cell paragraphs, and pagination terminates.
#[test]
fn an_at_least_row_at_the_top_of_a_page_splits_instead_of_moving_on() {
crate::test_fonts();
use wordcraft_doc::props::HeightRule;
// At the top of a page (or under the header rows repeated there) moving on gains nothing: a
// row taller than the room splits, and pagination ends.
let (l, pages) = at_least_rows(648.0, 1, |t| {
t.rows[0].props.height = Some(700.0);
t.rows[0].props.height_rule = HeightRule::AtLeast;
t.rows[0].cells[0].blocks = lines_in_cell(60, "Line");
t.rows[0].cells[0].blocks = lines_in_cell(80, "Line");
});
assert!(
pages.len() >= 2 && pages.iter().all(|p| p == &vec![0]),
+1 -2
View File
@@ -188,7 +188,6 @@ fn own_margins_and_resize_to_fit_keep_the_text_in_view() {
/// later pages.
#[test]
fn inline_box_that_resizes_to_fit_takes_its_texts_height() {
crate::test_fonts();
// #2791: an inline box with Resize shape to fit text, saved 10 cm tall around three short
// lines, shrinks to them as in Word; the page break after it stays on the first page.
let brk = wordcraft_doc::para::PAGE_BREAK;
@@ -298,4 +297,4 @@ fn inline_box_that_resizes_to_fit_takes_its_texts_height() {
/// Filler paragraphs before the box in [`inline_box_that_resizes_to_fit_takes_its_texts_height`]:
/// enough that a 10 cm box no longer leaves room for the page break on the first page.
const FILLER: usize = 16;
const FILLER: usize = 22;
+1
View File
@@ -4599,6 +4599,7 @@ mod tests {
frame(&mut a, vec![egui::Event::PointerMoved(over_page)]);
let wheel = egui::Event::MouseWheel {
unit: egui::MouseWheelUnit::Line,
source: egui::MouseWheelSource::Unknown,
delta: egui::vec2(0.0, 1.0),
phase: egui::TouchPhase::Move,
modifiers: egui::Modifiers::COMMAND,