mirror of
https://github.com/tmux/tmux.git
synced 2026-06-21 17:55:21 +00:00
Some more tests.
This commit is contained in:
@@ -144,4 +144,19 @@ compare cache-window-b
|
|||||||
$TMUX2 selectw -t$A || exit 1
|
$TMUX2 selectw -t$A || exit 1
|
||||||
compare cache-window-a-again
|
compare cache-window-a-again
|
||||||
|
|
||||||
|
# --- Size change: the client (and so the scene) is resized. ---
|
||||||
|
|
||||||
|
# With window-size latest the inner window tracks the client size, so resizing
|
||||||
|
# the outer window resizes the inner client and the scene. The cached scene must
|
||||||
|
# be rebuilt at the new size (the scene->sx/sy mismatch path in
|
||||||
|
# redraw_get_scene), not drawn at the old size.
|
||||||
|
$TMUX2 set -g window-size latest || exit 1
|
||||||
|
$TMUX2 neww -d "sh -c 'exec sleep 100'" || exit 1
|
||||||
|
$TMUX2 selectw -t:\$ || exit 1
|
||||||
|
$TMUX2 splitw -v "$C" || exit 1
|
||||||
|
compare cache-resizeclient-before
|
||||||
|
|
||||||
|
$TMUX resizew -x30 -y10 || exit 1
|
||||||
|
compare cache-resizeclient-after
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
@@ -171,4 +171,15 @@ $TMUX2 set status-format[0] "" || exit 1
|
|||||||
$TMUX2 new-pane -x20 -y6 -X8 -Y7 "sh -c 'printf OVERST; exec sleep 100'" || exit 1
|
$TMUX2 new-pane -x20 -y6 -X8 -Y7 "sh -c 'printf OVERST; exec sleep 100'" || exit 1
|
||||||
compare floating-over-status
|
compare floating-over-status
|
||||||
|
|
||||||
|
# A window left with only a floating pane: killing the single tiled pane removes
|
||||||
|
# it from the layout, so the area it occupied is no longer owned by any pane and
|
||||||
|
# is drawn as EMPTY cells (middle dots) around the float. This is the only way to
|
||||||
|
# produce a REDRAW_SPAN_EMPTY span.
|
||||||
|
new_scene 40 12
|
||||||
|
$TMUX2 new-pane -x20 -y6 -X8 -Y3 "sh -c 'printf FLOAT; exec sleep 100'" || exit 1
|
||||||
|
tiled=$($TMUX2 list-panes -F '#{pane_floating_flag} #{pane_id}' | \
|
||||||
|
awk '$1==0{print $2; exit}') || exit 1
|
||||||
|
$TMUX2 kill-pane -t "$tiled" || exit 1
|
||||||
|
compare floating-empty
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
──────────────────────────────
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
────────────────────────────────────────
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
12
regress/screen-redraw-results/floating-empty.result
Normal file
12
regress/screen-redraw-results/floating-empty.result
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
········································
|
||||||
|
········································
|
||||||
|
·······┌────────────────────┐···········
|
||||||
|
·······│FLOAT │···········
|
||||||
|
·······│ │···········
|
||||||
|
·······│ │···········
|
||||||
|
·······│ │···········
|
||||||
|
·······│ │···········
|
||||||
|
·······│ │···········
|
||||||
|
·······└────────────────────┘···········
|
||||||
|
········································
|
||||||
|
|
||||||
14
regress/screen-redraw-results/zoomed-pane.result
Normal file
14
regress/screen-redraw-results/zoomed-pane.result
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -177,4 +177,13 @@ $TMUX2 setw pane-border-status top || exit 1
|
|||||||
title_all p
|
title_all p
|
||||||
compare pane-status-2x2-top
|
compare pane-status-2x2-top
|
||||||
|
|
||||||
|
# A zoomed pane: the active pane fills the whole window and the other panes and
|
||||||
|
# their borders are not drawn at all (a single full-window pane scene).
|
||||||
|
new_scene
|
||||||
|
$TMUX2 splitw -h "$C" || exit 1
|
||||||
|
$TMUX2 splitw -v "$C" || exit 1
|
||||||
|
$TMUX2 selectp -t0 || exit 1
|
||||||
|
$TMUX2 resize-pane -Z || exit 1
|
||||||
|
compare zoomed-pane
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user