From 8af2c338e0d8704fef8a069d501e456371ca40d5 Mon Sep 17 00:00:00 2001 From: mtlcl410 <2368091+mtlcl410@users.noreply.github.com> Date: Sun, 25 Oct 2026 03:10:39 +0800 Subject: [PATCH] M5: tests main added build Annotation with no pop-up; settle comes from tests/it support (#2137) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_0175FWj4xFhMhSH3UpMU8DSC --- crates/render/src/inspect.rs | 1 + crates/ui-egui/src/comments.rs | 1 + crates/ui-egui/tests/it/comments.rs | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/render/src/inspect.rs b/crates/render/src/inspect.rs index 434c37436b..61118ab66b 100644 --- a/crates/render/src/inspect.rs +++ b/crates/render/src/inspect.rs @@ -2547,6 +2547,7 @@ mod tests { fill_sign: false, no_rotate: true, points: Vec::new(), + popup: None, }; let rect = note.rect.map(f64::from); for rotation in [0u16, 90, 180, 270, 45] { diff --git a/crates/ui-egui/src/comments.rs b/crates/ui-egui/src/comments.rs index 822f1ab0cc..0f5d9bf0f9 100644 --- a/crates/ui-egui/src/comments.rs +++ b/crates/ui-egui/src/comments.rs @@ -2547,6 +2547,7 @@ mod tests { fill_sign: false, no_rotate, points: Vec::new(), + popup: None, }; let page = PageInfo { width: 140.0, height: 200.0, label: String::new(), crop: [0.0, 0.0, 200.0, 140.0], rotation: 90 }; let xf = PageXform { rect: Rect::from_min_size(Pos2::ZERO, vec2(140.0, 200.0)), rot: 0, pw: 140.0, ph: 200.0 }; diff --git a/crates/ui-egui/tests/it/comments.rs b/crates/ui-egui/tests/it/comments.rs index c7dac5abfb..c1c1b040b0 100644 --- a/crates/ui-egui/tests/it/comments.rs +++ b/crates/ui-egui/tests/it/comments.rs @@ -2741,7 +2741,7 @@ fn a_double_click_opens_a_notes_pop_up_which_drags_and_closes() { app }); h.run_steps(4); - settle(&mut h); + crate::support::settle(&mut h); click_pt(&mut h, (60.0, 160.0)); field(&h, "Add a comment").type_text("Please check"); h.run_steps(2);