From ddaea580a1ab987aee33177036725bdfc3a8a560 Mon Sep 17 00:00:00 2001 From: Nathaniel Ledford Date: Thu, 8 Oct 2026 18:34:02 -0400 Subject: [PATCH] #323: test: holding \ in a wipe is tested with the key held, and the mutation fails it Co-Authored-By: Claude Sonnet 5.5 --- crates/ui-egui/src/tests_preview_limit.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/ui-egui/src/tests_preview_limit.rs b/crates/ui-egui/src/tests_preview_limit.rs index a1bd224c1..4d64dca20 100644 --- a/crates/ui-egui/src/tests_preview_limit.rs +++ b/crates/ui-egui/src/tests_preview_limit.rs @@ -594,6 +594,10 @@ mod in_the_loupe { modifiers: egui::Modifiers::NONE, }); h.settle(SETTLE); + // (the key's own shortcut switches to the Before view; the wipe is chosen again with the + // key still down, which is what holding `\` in a wipe is) + h.app.ui.before_after = crate::state::BeforeAfter::Split; + h.settle(SETTLE); h.step(); let canvas = h.app.canvas_rect.unwrap(); let window = drawn(&h, Slot::RegionBefore);