summaryrefslogtreecommitdiff
path: root/test/snapshots/tagbottomimage.snap
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-08-09 06:54:27 -0300
committerGabriel Schneider <[email protected]>2026-08-10 09:17:07 -0300
commit599dd82f96b9d091aae78300aa6c3fbc81f9eb69 (patch)
tree532d29eb0d79896cd730fb324df4866056306506 /test/snapshots/tagbottomimage.snap
parent628aa40f13e9bbd313b51ab625f193110aad8dd0 (diff)
downloadpardes-599dd82f96b9d091aae78300aa6c3fbc81f9eb69.tar.gz
pardes-599dd82f96b9d091aae78300aa6c3fbc81f9eb69.zip
review pass: fix the eaten Tab, drop the duplicated code, cover the gaps
Diffstat (limited to 'test/snapshots/tagbottomimage.snap')
-rw-r--r--test/snapshots/tagbottomimage.snap52
1 files changed, 52 insertions, 0 deletions
diff --git a/test/snapshots/tagbottomimage.snap b/test/snapshots/tagbottomimage.snap
new file mode 100644
index 00000000..e46e19ba
--- /dev/null
+++ b/test/snapshots/tagbottomimage.snap
@@ -0,0 +1,52 @@
+# Tagbottom against the one pane kind whose renderPane RETURNS EARLY. An image
+# draws no body rows and no tagline of its own — the tag comes from the outer
+# loop and so does the transient message row — so it is exactly the pane where
+# "the tag moved" and "the message row moved with it" can come apart. Nothing
+# in tagbottom.snap touches one.
+ppmdiag pic.ppm
+start 30 150 -n 1
+wait 8000 New Newcol
+stable 700 20000
+# open it the way images.snap does: type the name into the shell pane's own
+# text and right-click it. The image lands in a column of its own on the left.
+press left 5 8
+release left 5 8
+stable 400 5000
+key i
+text pic.ppm
+key esc
+settle 100
+press right 6 8
+release right 6 8
+wait 10000 img
+stable 700 20000
+snap img-top
+# SPC t b: the tag leaves row 1 for row 29 and the glyph art slides up into the
+# row it left. The style capture is the half a text grid cannot see — the
+# tagline's chrome colours have to travel with it, and a tag row drawn in the
+# palette of the cell art under it would read as part of the picture.
+key space t b
+stable 700 15000
+snap img-bottom
+snapstyle img-bottom
+# `/` on an image pane. There is no text to search, and that is the point: the
+# prompt is drawn by the message-row pass, which runs OUTSIDE renderPane
+# precisely so an early-returning pane still gets one. With Tagbottom it lands
+# on the pane's FIRST row (grid 1), the end away from the tag — over the top
+# row of the art, not over the tagline that is now beneath it.
+key /
+send ZZ
+stable 600 8000
+stable 400 5000
+snap search-prompt
+key esc
+settle 100
+stable 400 5000
+# ...and EXECUTE `Del` on that bottom tagline, which is the assertion the
+# pixels cannot make: the middle click has to map row 29 to the image pane's
+# TAG row rather than to a body row it has no body for. The image pane goes
+# away entirely and the shell takes the whole window back.
+press middle 56 30
+release middle 56 30
+stable 700 15000
+snap del-image