From fae390a3a9ce9797ed13fecfc75013018fa2762f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 9 Sep 2026 23:01:06 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20test(app):=20the=20rail's=20exempti?= =?UTF-8?q?ons=20go=20now=20that=20every=20one=20has=20a=20right-click=20d?= =?UTF-8?q?oor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 19 EXPLICITLY_OWNED_ELSEWHERE entries LANE R1 wrote naming LANE R2 are paid: the clip menu, the ruler's and the lane head's carry each of them, so the staleness assert's debt is cleared. The snap's assertion is a plain one again -- on BENCH_ITEMS, since a menu row's hitmap id is generated. --- crates/app/src/tests/editing.rs | 13 ++-- crates/app/src/tests/layout.rs | 111 +++----------------------------- 2 files changed, 15 insertions(+), 109 deletions(-) diff --git a/crates/app/src/tests/editing.rs b/crates/app/src/tests/editing.rs index bac4baf..fab1c97 100644 --- a/crates/app/src/tests/editing.rs +++ b/crates/app/src/tests/editing.rs @@ -1311,13 +1311,14 @@ fn every_action_is_reachable_without_the_keyboard() { } // The snap's own door was the rail's `⌗` glyph, and the rail is deleted // (DESIGN §5 as amended 2026-09-09, user decision "option C"). Its - // replacement -- a right-click row on the ruler it snaps against -- is - // LANE R2's parity work, so the assertion is inverted rather than - // dropped: it names the owner and fails the moment that door lands, at - // which point this goes back to `assert!(element("snap"), ...)`. + // replacement landed with the ruler's right-click menu ([`BENCH_ITEMS`]), + // which carries the snap with its state in the label. A menu row wears a + // *generated* hitmap id (`menu.{action:?}`, overlays.rs), so the door is + // asserted on the list the row is built from rather than on a literal id + // no source file spells any more. assert!( - !element("snap"), - "LANE R2 landed a snap door -- restore this to assert!(element(\"snap\"))" + BENCH_ITEMS.contains(&ActionId::ToggleSnap), + "no pointer door for the snap" ); // And the card is a door the pointer can open: the panel's own button. assert!(element("keys"), "no way to open the actions card"); diff --git a/crates/app/src/tests/layout.rs b/crates/app/src/tests/layout.rs index 3ba334c..66dc037 100644 --- a/crates/app/src/tests/layout.rs +++ b/crates/app/src/tests/layout.rs @@ -2471,111 +2471,16 @@ fn every_action_has_a_darkroom_widget_home_or_explicit_owner() { accelerator for cycling that existing selection, not a new door -- legacy had no \ toolbar button for it either", ), - // The rail's own eighteen. Deleting the spine (DESIGN §5 as amended - // 2026-09-09, user decision "option C") took the only pointer door - // each of these had; LANE R2's right-click parity is what gives them - // a new one, on the thing each acts on. The staleness check below - // deletes the exemption the moment that lands, so this cannot become - // a permanent hole. - ( - ActionId::Undo, - "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \ - LANE R2 owns the right-click row on the thing each acts on", - ), - ( - ActionId::Redo, - "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \ - LANE R2 owns the right-click row on the thing each acts on", - ), - ( - ActionId::WalkCutPrev, - "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \ - LANE R2 owns the right-click row on the thing each acts on", - ), - ( - ActionId::WalkCutNext, - "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \ - LANE R2 owns the right-click row on the thing each acts on", - ), - ( - ActionId::WalkCutNext10, - "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \ - LANE R2 owns the right-click row on the thing each acts on", - ), - ( - ActionId::WalkCutPrev10, - "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \ - LANE R2 owns the right-click row on the thing each acts on", - ), - ( - ActionId::TrimIn, - "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \ - LANE R2 owns the right-click row on the thing each acts on", - ), - ( - ActionId::TrimOut, - "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \ - LANE R2 owns the right-click row on the thing each acts on", - ), - ( - ActionId::TrimInToPlayhead, - "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \ - LANE R2 owns the right-click row on the thing each acts on", - ), - ( - ActionId::TrimOutToPlayhead, - "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \ - LANE R2 owns the right-click row on the thing each acts on", - ), - ( - ActionId::LoopTrim, - "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \ - LANE R2 owns the right-click row on the thing each acts on", - ), - ( - ActionId::ZoomIn, - "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \ - LANE R2 owns the right-click row on the thing each acts on", - ), - ( - ActionId::ZoomOut, - "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \ - LANE R2 owns the right-click row on the thing each acts on", - ), - ( - ActionId::ZoomFit, - "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \ - LANE R2 owns the right-click row on the thing each acts on", - ), - ( - ActionId::ToggleSnap, - "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \ - LANE R2 owns the right-click row on the thing each acts on", - ), - ( - ActionId::AddVideoLane, - "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \ - LANE R2 owns the right-click row on the thing each acts on", - ), - ( - ActionId::AddAudioLane, - "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \ - LANE R2 owns the right-click row on the thing each acts on", - ), - ( - ActionId::AddSubtitleLane, - "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \ - LANE R2 owns the right-click row on the thing each acts on", - ), - ( - ActionId::RemoveSubtitleLane, - "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \ - LANE R2 owns the right-click row on the thing each acts on", - ), + // The rail's own eighteen are gone from this list: the right-click + // parity (DESIGN §5 as amended 2026-09-09, user decision "option C") + // gave every one of them a door on the thing it acts on -- the clip + // menu, the ruler's, the lane head's -- and the staleness check below + // is what deleted their entries as each landed. ( ActionId::Screenshot, - "the 56px rail these stood on is deleted (DESIGN §5, 2026-09-09, user \"option C\"); \ - LANE R2 owns the right-click row on the thing each acts on", + "the picture the frame is written from is the *watched* frame and \ + nothing else is under the pointer to right-click for it: keyboard \ + and the KEYS card, like the selection accelerators above", ), ]; let darkroom = [