From 22674b8fae3b082c0e0947edfcc2eb6c6a41479d Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 28 Nov 2026 05:57:27 +0100 Subject: [PATCH] layout tests: the sibling stretches across the column --- crates/thing-core/tests/layout.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/thing-core/tests/layout.rs b/crates/thing-core/tests/layout.rs index 2376163..1a0dc23 100644 --- a/crates/thing-core/tests/layout.rs +++ b/crates/thing-core/tests/layout.rs @@ -641,9 +641,9 @@ fn invalid_image_measures_are_named_and_harmless() { assert_eq!(laid.diagnostics.len(), 1, "{size:?}"); let d = &laid.diagnostics[0]; assert_eq!((d.code, d.node.as_ref().map(|n| n.as_str()), d.detail.as_str()), (Code::StyleValueInvalid, Some("pic"), "measure"), "{size:?}"); - // The sibling keeps its own size and sits below the picture. + // The sibling keeps its size (stretched across the column) and is not zeroed. let sibling = rect(&laid, "sibling"); - assert_eq!((sibling.2, sibling.3), (16.0, 16.0), "{size:?}"); + assert_eq!((sibling.2, sibling.3), (200.0, 16.0), "{size:?}"); assert!(laid.nodes.iter().all(|n| [n.rect.x, n.rect.y, n.rect.w, n.rect.h].iter().all(|v| v.is_finite())), "{size:?}"); } // No extent yet (0x0) is not a fault, and a sound ratio is kept.