mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-24 10:37:03 -06:00
Fix up merged PRs: Opaque shapes in tests carry #209's new parts field
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
49d215f07f
commit
708a22c51f
@@ -63,9 +63,9 @@ fn corpus() -> (Presentation, Vec<u8>, Vec<u8>, Vec<u8>) {
|
||||
|
||||
let mut objects = new_slide(&mut p, "Objects");
|
||||
let mut diagram = shape(&mut p, "Diagram", 40.0, 80.0, 288.0, 144.0);
|
||||
diagram.kind = ShapeKind::Opaque { xml: SMARTART.into(), preview: None, label: "SmartArt".into() };
|
||||
diagram.kind = ShapeKind::Opaque { xml: SMARTART.into(), preview: None, label: "SmartArt".into(), parts: vec![] };
|
||||
let mut embedded = shape(&mut p, "Embedded", 340.0, 80.0, 144.0, 72.0);
|
||||
embedded.kind = ShapeKind::Opaque { xml: OLE.into(), preview: None, label: "DeckCraft.Note.1".into() };
|
||||
embedded.kind = ShapeKind::Opaque { xml: OLE.into(), preview: None, label: "DeckCraft.Note.1".into(), parts: vec![] };
|
||||
let mut block_shape = shape(&mut p, "Block", 40.0, 240.0, 120.0, 90.0);
|
||||
block_shape.kind = ShapeKind::Model3d { media: block_id, poster: None };
|
||||
let mut globe_shape = shape(&mut p, "Globe", 180.0, 240.0, 160.0, 120.0);
|
||||
|
||||
@@ -1436,7 +1436,7 @@ fn an_object_deckcraft_doesnt_model_shows_its_preview_picture() {
|
||||
let sh = Shape {
|
||||
id: ShapeId(600),
|
||||
xfrm: Some(Xfrm::new(100.0, 100.0, 400.0, 200.0)),
|
||||
kind: ShapeKind::Opaque { xml: String::new(), preview: with_preview.then_some(media), label: "Package".into() },
|
||||
kind: ShapeKind::Opaque { xml: String::new(), preview: with_preview.then_some(media), label: "Package".into(), parts: vec![] },
|
||||
..Default::default()
|
||||
};
|
||||
std::sync::Arc::make_mut(&mut p.slides[0]).shapes = vec![sh];
|
||||
|
||||
Reference in New Issue
Block a user