PhotoCraft: An open-source, photo editor written by scratch in pure Rust
Integration: #7388 #6936 the Crop popup key tests make the ratio-fitted frame a drawn one first
aionggfafbb4bbdf28
diff --git a/crates/ui-egui/tests/crop_popup_keys.rs b/crates/ui-egui/tests/crop_popup_keys.rsindex 9c893ae7e..facb1be24 100644--- a/crates/ui-egui/tests/crop_popup_keys.rs+++ b/crates/ui-egui/tests/crop_popup_keys.rs@@ -55,6 +55,9 @@ fn setup() -> Option<Harness> {h.run_steps(3);h.get_by_label("1 : 1 (Square)").click();h.run_steps(3);+ // Picking a ratio only fits the untouched default frame; a keyed edit makes it a drawn one.+ assert!(photocraft_ui_egui::crop_ui::nudge(h.state_mut(), 0.0, 0.0));+ h.run_steps(3);assert!(photocraft_ui_egui::crop_ui::pending(h.state()), "the 1:1 frame is pending");assert!(!egui::Popup::is_any_open(&h.ctx), "the list closed after the pick");h.get_by_value("1 : 1 (Square)").click();