summaryrefslogtreecommitdiff
path: root/test/snapshots/shrinktag.snap
blob: 31edad143855ac935389135e03daf68700b4096f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# a pane can shrink to just its tagline: the pane below dragged by its grip up
# to the tag row (0 body rows) -- a terminal has no rule between panes, so
# the grip is the handle, as acme's button is -- the gutter box still grabs a
# move, and dragging back down restores the body intact (the hidden pane's
# pty/vt is never resized)
file w.txt x
start 31 100 -n 3
wait 8000 w.txt
stable 700 20000
# content in pane 0 so the restored body is provably intact
press left 5 9
release left 5 9
stable 400 5000
key i
text echo one; echo two
key enter
key esc
settle 100
stable 400 5000
snap before
# drag the lower pane's grip up under pane 0's tag row: tag-only pane
press left 1 18
drag left 1 3
release left 1 3
motion 40 25
stable 500 8000
snap shrunk
# the shrunk pane's gutter box grabs a move: preview one into the right
# column, abort by releasing over the pane itself
press left 1 3
drag left 70 9
stable 400 5000
snap move-preview
drag left 20 3
release left 20 3
stable 400 5000
# re-enlarge: the lower pane's grip, now under pane 0's tag, pulled back down
press left 1 4
drag left 1 18
release left 1 18
motion 40 25
stable 500 8000
snap restored
# the bottom pane can shrink to ITS tag too: its grip dragged past the bottom
press left 1 18
drag left 1 31
release left 1 31
motion 40 25
stable 500 8000
snap bottom-shrunk