diff --git a/crates/engine/tests/it/prefs_usage.rs b/crates/engine/tests/it/prefs_usage.rs index 32317e7111..349cae6354 100644 --- a/crates/engine/tests/it/prefs_usage.rs +++ b/crates/engine/tests/it/prefs_usage.rs @@ -114,8 +114,9 @@ fn inherent_impls(src: &str, name: &str) -> String { } /// Agent settings the framework's `AgentSettings` reads itself (the control link binds -/// `control_port`; `read_folder()` supplies the read root), so no PhotoCraft source names the field. -const READ_BY_THE_FRAMEWORK: &[&str] = &["integrations.controlPort", "integrations.readRoot"]; +/// `control_port`; `read_folder()` supplies the read root; the shared live client picks the +/// closed-app choice from `when_app_closed`), so no PhotoCraft source names the field. +const READ_BY_THE_FRAMEWORK: &[&str] = &["integrations.controlPort", "integrations.readRoot", "integrations.whenAppClosed"]; #[test] fn every_preference_is_read_or_hidden() { diff --git a/crates/ui-egui/src/tools/anchor_tools/tests.rs b/crates/ui-egui/src/tools/anchor_tools/tests.rs index 621a8fc0fe..a1803d6d1e 100644 --- a/crates/ui-egui/src/tools/anchor_tools/tests.rs +++ b/crates/ui-egui/src/tools/anchor_tools/tests.rs @@ -63,7 +63,7 @@ fn add_on_a_straight_segment_inserts_a_smooth_anchor_in_one_step() { } #[test] -fn delete_removes_the_clicked_anchor_and_alt_swaps_the_tools() { +fn delete_removes_the_clicked_anchor_and_alt_makes_it_add() { let mut app = app(Tool::DeleteAnchorPoint); with_path(&mut app); let n = steps(&app); @@ -72,15 +72,15 @@ fn delete_removes_the_clicked_anchor_and_alt_swaps_the_tools() { assert_eq!((p.subpaths[0].knots.len(), p.subpaths[0].closed), (3, true)); assert_eq!(p.subpaths[0].knots[2].anchor, Point::new(40.0, 120.0)); assert_eq!(app.session.active().unwrap().history.undo_label(), Some("Delete Anchor Point")); - // ⌥ with Delete adds; ⌥ with Add deletes. + // ⌥ with Delete adds; ⌥ with Add deletes nothing (#12709). click(&mut app, [80.0, 120.0], Modifiers::ALT); assert_eq!(work(&app).subpaths[0].knots.len(), 3, "the bottom edge is gone; ⌥ on empty canvas adds nothing"); click(&mut app, [40.0, 80.0], Modifiers::ALT); assert_eq!(work(&app).subpaths[0].knots.len(), 4); app.ui.tool = Tool::AddAnchorPoint; click(&mut app, [40.0, 80.0], Modifiers::ALT); - assert_eq!(work(&app).subpaths[0].knots.len(), 3); - assert_eq!(steps(&app), n + 3); + assert_eq!(work(&app).subpaths[0].knots.len(), 4); + assert_eq!(steps(&app), n + 2); } #[test]