From 439b955cc62719bc8dae85fa6ee0d2c968a4fff1 Mon Sep 17 00:00:00 2001 From: David Mann Date: Sat, 21 Nov 2026 19:20:58 +0100 Subject: [PATCH] Name the reordered documents so the menu trial sees the move Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/menu_floor_trials.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/menu_floor_trials.rs b/crates/ui-egui/src/menu_floor_trials.rs index ed2696b9b79..f61e567f985 100644 --- a/crates/ui-egui/src/menu_floor_trials.rs +++ b/crates/ui-egui/src/menu_floor_trials.rs @@ -158,8 +158,8 @@ fn the_held_menu_model_equals_a_fresh_build_after_each_step() { held_is_fresh(&mut h, "a save that renames the document"); // Three documents, the first active: moving the second after the third keeps the active document where it was, // and the Window menu's second entry opens the other document now (#16252). - for _ in 0..2 { - h.state_mut().session.execute("file.new", json!({"width": 200, "height": 100})).unwrap(); + for name in ["Second", "Third"] { + h.state_mut().session.execute("file.new", json!({"width": 200, "height": 100, "name": name})).unwrap(); } h.state_mut().session.set_active(0); held_is_fresh(&mut h, "opening two more documents");