From bb55ab3963f780a03b4b6d3a245e244514432259 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Sat, 28 Nov 2026 14:54:58 -0800 Subject: [PATCH] New Document: format the small-window layout test --- crates/ui-egui/src/dialogs/new_document.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/dialogs/new_document.rs b/crates/ui-egui/src/dialogs/new_document.rs index f2007ed5d2..8e770d3da7 100644 --- a/crates/ui-egui/src/dialogs/new_document.rs +++ b/crates/ui-egui/src/dialogs/new_document.rs @@ -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:?}"); }