Adds a self_test() entry-point that the editor invokes once when SPOREL_CI=1 is set, exercising the seven §7.1 acceptance checks from the menu-UI spec: open/close, toggle flip, modal absorb, disabled-item no-op, mode switch, category switch, and layer visibility submenu round-trip. Any failed engine.test assertion exits with non-zero. Fixes cheatsheet modal on_click to close only on inside-bounds click (was closing on any click, breaking t3 outside-click-absorb assertion). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
70 KiB
70 KiB