From f7e6ba8f1a2e8befa893fd6b377c386c84f06100 Mon Sep 17 00:00:00 2001 From: aiongg Date: Fri, 16 Oct 2026 03:25:54 +0000 Subject: [PATCH] Integration: the Text Wrap panel test expects next's Wrap To row after the offsets Next added Wrap To / Contour Type to the panel on purpose; main's test listed only the offsets. --- crates/ui-egui/src/panels/properties.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/panels/properties.rs b/crates/ui-egui/src/panels/properties.rs index 5743f7acc..6b4526f08 100644 --- a/crates/ui-egui/src/panels/properties.rs +++ b/crates/ui-egui/src/panels/properties.rs @@ -3152,9 +3152,10 @@ mod wrap_panel_tests { app.run("object.textWrap", json!({"mode": "boundingBox", "offset": [1, 2, 3, 4]})).unwrap(); let ctx = egui::Context::default(); crate::theme::install_fonts(&ctx, "en"); - // Top and Left, then Bottom and Right, each with its own value (picas here: 0p1 = 1 pt). + // Top and Left, then Bottom and Right, each with its own value (picas here: 0p1 = 1 pt), + // then the Wrap To side. let t: Vec = frame(&mut app, &ctx, vec![]).into_iter().map(|(t, _)| t).filter(|t| !t.is_empty()).collect(); - assert_eq!(t, ["Invert", "Top", "0p1", "Left", "0p2", "Bottom", "0p3", "Right", "0p4"]); + assert_eq!(t, ["Invert", "Top", "0p1", "Left", "0p2", "Bottom", "0p3", "Right", "0p4", "Wrap To", "Both Right & Left Sides"]); // Invert, next to the wrap buttons. let pos = frame(&mut app, &ctx, vec![]).into_iter().find(|(t, _)| t == "Invert").unwrap().1.center(); for pressed in [true, false] {