Skip to content

DesignCraft: An open-source page and layout design editor written by scratch in pure Rust

Integration: the grouped reading-order test finds its image by alt text (#785 writes no file name)

aiongg0011cfee9506
diff --git a/crates/epub/tests/grouped_reading_order.rs b/crates/epub/tests/grouped_reading_order.rs
index bd3e78d49..5e1f570b1 100644
--- a/crates/epub/tests/grouped_reading_order.rs
+++ b/crates/epub/tests/grouped_reading_order.rs
@@ -109,6 +109,8 @@ fn nested_and_item_rotations_are_combined_before_measuring_graphics() {
crop: [0.0; 4],
wrap: Default::default(),
});
+ // The export writes the alt text, not the file name.
+ item.alt_text = "Grouped image".into();
item.xf = Affine::rotate(std::f64::consts::FRAC_PI_4);
doc.insert_item(SpreadRef::Doc(0), item, None).unwrap();
let inner = group(&mut doc, 0, &[image], Affine::rotate(-std::f64::consts::FRAC_PI_4));