diff --git a/crates/epub/tests/grouped_reading_order.rs b/crates/epub/tests/grouped_reading_order.rs index c6f2226ef..bd3e78d49 100644 --- a/crates/epub/tests/grouped_reading_order.rs +++ b/crates/epub/tests/grouped_reading_order.rs @@ -93,12 +93,22 @@ fn nested_and_item_rotations_are_combined_before_measuring_graphics() { data: Arc::new(br#""#.to_vec()), pixels: None, page: 0, + pdf_crop: Default::default(), + pdf_box: None, }), ); let image = ItemId(doc.alloc()); let mut item = Item::new(image, doc.default_layer(), Shape::Rectangle, shapes::rectangle(Rect::new(0.0, 0.0, 100.0, 10.0))); - item.content = - Content::Graphic(Graphic { asset: aid, size: (1.0, 1.0), xf: Affine::IDENTITY, auto_fit: Default::default(), fit_align: 4, crop: [0.0; 4] }); + item.content = Content::Graphic(Graphic { + asset: aid, + size: (1.0, 1.0), + xf: Affine::IDENTITY, + clip: None, + auto_fit: Default::default(), + fit_align: 4, + crop: [0.0; 4], + wrap: Default::default(), + }); 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));