summaryrefslogtreecommitdiff
path: root/test/snapshots
diff options
context:
space:
mode:
Diffstat (limited to 'test/snapshots')
-rw-r--r--test/snapshots/ttyclick.golden124
-rw-r--r--test/snapshots/ttyclick.snap32
2 files changed, 156 insertions, 0 deletions
diff --git a/test/snapshots/ttyclick.golden b/test/snapshots/ttyclick.golden
new file mode 100644
index 00000000..a02ed2b5
--- /dev/null
+++ b/test/snapshots/ttyclick.golden
@@ -0,0 +1,124 @@
+== snap tty-bodyclick grid=100x30 cursor=4,4
+|Kill Newcol Tutor Debug Colors NextColor Dump
+| TTY /tmp/pardes-snap/ttyclick/cwd Del NOR /tmp/pardes-snap/ttyclick/cwd Del
+| $ ls
+| probe.txt probe.txt
+| $
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+| NOR /tmp/pardes-snap/ttyclick/cwd Del
+|
+| probe.txt
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+== snap tty-tagedit grid=100x30 cursor=39,1
+|Kill Newcol Tutor Debug Colors NextColor Dump
+| INS /tmp/pardes-snap/ttyclick/cwd Del NOR /tmp/pardes-snap/ttyclick/cwd Del
+|
+| probe.txt probe.txt
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+| NOR /tmp/pardes-snap/ttyclick/cwd Del
+|
+| probe.txt
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+== snap tty-tagexit grid=100x30 cursor=4,4
+|Kill Newcol Tutor Debug Colors NextColor Dump
+| TTY /tmp/pardes-snap/ttyclick/cwd Del NOR /tmp/pardes-snap/ttyclick/cwd Del
+| $ ls
+| probe.txt probe.txt
+| $
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+| NOR /tmp/pardes-snap/ttyclick/cwd Del
+|
+| probe.txt
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+== snap ins-bodyclick grid=100x30 cursor=11,3
+|Kill Newcol Tutor Debug Colors NextColor Dump
+| INS /tmp/pardes-snap/ttyclick/cwd Del NOR /tmp/pardes-snap/ttyclick/cwd Del
+|
+| probe.txt probe.txt
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+| NOR /tmp/pardes-snap/ttyclick/cwd Del
+|
+| probe.txt
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
+|
diff --git a/test/snapshots/ttyclick.snap b/test/snapshots/ttyclick.snap
new file mode 100644
index 00000000..9654b590
--- /dev/null
+++ b/test/snapshots/ttyclick.snap
@@ -0,0 +1,32 @@
+# clicks in a shell pane never change its mode: a body click in raw tty
+# keeps TTY (before: the press dropped it to NOR), a tag-edit round trip
+# restores the mode it hijacked, and an insert-mode body click re-pins the
+# cursor but stays INS. File panes keep the old behavior (click -> normal).
+file probe.txt marker
+start 30 100 -n 3
+wait 8000 probe.txt
+stable 700 20000
+key c-b
+stable 600 8000
+# body click in raw tty: focus/selection only, mode stays TTY
+press left 10 4
+release left 10 4
+stable 400 5000
+snap tty-bodyclick
+# tag edit from tty: INS while editing, Esc restores TTY (not NOR)
+press left 40 2
+release left 40 2
+stable 400 5000
+snap tty-tagedit
+key esc
+stable 400 5000
+snap tty-tagexit
+# out of tty, into insert: a body click moves the cursor but keeps INS
+key c-b
+stable 600 8000
+key i
+stable 400 5000
+press left 12 4
+release left 12 4
+stable 400 5000
+snap ins-bodyclick