qemu: regression script for home leaving fullscreen
tests/scripts/home-leaves-fullscreen.txt taps the dashboard into fullscreen, proves the rail gear's pixel now resolves to the 720x720 canvas, sends `home` and proves the gear's own box is back; then the same from another page. The `home` verb used to reach Dashboard/Dashboard without leaving fullscreen, which is the state a hardware wake tap leaves behind (flare-edge #176). Runs green on the rig: 20 ok, 0 failed. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N3G6m9Aw5RyVY4ZowtKzEj
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
# `home` must leave dashboard fullscreen, not only reach Dashboard/Dashboard.
|
||||
#
|
||||
# On the dashboard a tap anywhere toggles fullscreen (screen_overview.c's
|
||||
# tap-catcher). On a panel a flow's `wake` is a real finger on the glass, so
|
||||
# a flow that woke the panel on the dashboard left the next flow a 720x720
|
||||
# canvas over the chrome: the rail gear at (47,676) resolved to
|
||||
# `widget box=0,0,720x720` instead of `obj box=12,640,72x72`, and every
|
||||
# hit against chrome failed from there (bench sample 2026-09-08, flare-edge
|
||||
# #176). The runner's `home` preamble now clears fullscreen last, after the
|
||||
# dashboard is the page again, so this is the regression guard for it.
|
||||
#
|
||||
# `wake` first, as every compiled flow does: by the time the control bridge is
|
||||
# up the rig may already sit dimmed, and sleep.c swallows the touch that wakes
|
||||
# a dimmed panel (flare-edge #148) -- the tap below must reach the tap-catcher.
|
||||
wake
|
||||
sleep 1
|
||||
assert_page Dashboard/Dashboard
|
||||
assert_hit 47 676 obj box=12,640,72x72
|
||||
tap 360 360
|
||||
sleep 1
|
||||
assert_hit 47 676 widget box=0,0,720x720
|
||||
home
|
||||
sleep 1
|
||||
assert_page Dashboard/Dashboard
|
||||
assert_hit 47 676 obj box=12,640,72x72
|
||||
# The same from another page: fullscreen on, leave, come home.
|
||||
tap 360 360
|
||||
sleep 1
|
||||
assert_hit 47 676 widget box=0,0,720x720
|
||||
nav Mining Devices/ASICs
|
||||
sleep 1
|
||||
home
|
||||
sleep 1
|
||||
assert_page Dashboard/Dashboard
|
||||
assert_hit 47 676 obj box=12,640,72x72
|
||||
Reference in New Issue
Block a user