New Document: format the small-window layout test

This commit is contained in:
dotCooCoo committed 2026-11-28 14:54:58 -08:00
1 parent 4c29723f58
commit bb55ab3963
1 file changed
+4 -1
+4 -1
View File
@@ -1573,7 +1573,10 @@ mod tests {
assert!(a.y1 <= portrait.y0 || landscape.x1 <= a.x0, "{at}: Orientation {landscape:?} stays clear of Artboards {a:?}");
let [top, bottom, left, right] = ["Top", "Bottom", "Left", "Right"].map(|side| node(&nodes, side, Role::SpinButton));
assert!(top.y0 == bottom.y0 && left.y0 == right.y0 && top.y1 <= left.y0, "{at}: two Bleed rows: {top:?} {bottom:?} {left:?} {right:?}");
assert!(top.x0 == left.x0 && bottom.x0 == right.x0 && top.x1 <= bottom.x0, "{at}: two Bleed columns: {top:?} {bottom:?} {left:?} {right:?}");
assert!(
top.x0 == left.x0 && bottom.x0 == right.x0 && top.x1 <= bottom.x0,
"{at}: two Bleed columns: {top:?} {bottom:?} {left:?} {right:?}"
);
let link = node(&nodes, "Make all settings the same", Role::Button);
assert!(right.x1 <= link.x0 && link.x1 <= dialog.x1, "{at}: the link button {link:?} follows Right {right:?} inside {dialog:?}");
}