summaryrefslogtreecommitdiff
path: root/test/snapshots/doccol.snap
diff options
context:
space:
mode:
Diffstat (limited to 'test/snapshots/doccol.snap')
-rw-r--r--test/snapshots/doccol.snap43
1 files changed, 43 insertions, 0 deletions
diff --git a/test/snapshots/doccol.snap b/test/snapshots/doccol.snap
new file mode 100644
index 00000000..80133c38
--- /dev/null
+++ b/test/snapshots/doccol.snap
@@ -0,0 +1,43 @@
+# A file opened from a terminal joins the column a FILE PANE was last used in.
+# a.txt boots on the left and b.txt joins it there; b.txt is then dragged into
+# the RIGHT column and worked in, so that column is the newest one a doc was
+# read in while a.txt keeps the lowest pane id. The c.txt look then comes from
+# the right shell and must land under b.txt. Slot order — the rule this
+# replaces — would have answered a.txt (pane 0) and put c.txt back on the left.
+file a.txt AAA
+file b.txt BBB\nB-TWO
+file c.txt CCC
+start 30 100 -n 2 a.txt
+wait 8000 c.txt
+stable 700 20000
+snap boot
+# look b.txt in the shell's ls output: the second doc splits the first, so
+# both docs are in the left column and a.txt is the lower-numbered pane
+press right 60 4
+release right 60 4
+wait 10000 BBB
+stable 700 20000
+snap two-docs
+# drag b.txt's layout box (the gutter cells of its tag row) into the right
+# column, below the shell
+press left 1 17
+drag left 75 20
+release left 75 20
+stable 700 15000
+snap moved
+# use a.txt, then b.txt: what counts is the doc last USED, so a.txt being the
+# most recent for a moment must not survive the click into b.txt
+press left 5 3
+release left 5 3
+stable 400 5000
+press left 60 21
+release left 60 21
+key j
+stable 400 5000
+snap worked
+# look c.txt from the shell: below b.txt, in the right column
+press right 67 4
+release right 67 4
+wait 10000 CCC
+stable 700 20000
+snap third