layout tests: the sibling stretches across the column
This commit is contained in:
parent
ce37f22671
commit
22674b8fae
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue