summaryrefslogtreecommitdiff
path: root/test/snapshots/views-term.snap
diff options
context:
space:
mode:
Diffstat (limited to 'test/snapshots/views-term.snap')
-rw-r--r--test/snapshots/views-term.snap27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/snapshots/views-term.snap b/test/snapshots/views-term.snap
new file mode 100644
index 00000000..bbd1c368
--- /dev/null
+++ b/test/snapshots/views-term.snap
@@ -0,0 +1,27 @@
+# A terminal shown in two views at two sizes (src/views.zig): it takes the
+# size of the view that typed into it last; the other shows it at that size.
+config Verbose off
+start 24 80 views=2
+wait 8000 $
+stable 700 20000
+view 2
+resize 14 50
+stable 500 10000
+snap small
+# Typed in the big view: sized for it, shown so in the small one.
+view 1
+text echo from-the-big-one
+key enter
+stable 500 10000
+snap big
+view 2
+stable 500 10000
+snap small-sees
+# Typed in the small view: sized for it now, the big one shows it so.
+text echo from-the-small-one
+key enter
+stable 500 10000
+snap small-typed
+view 1
+stable 500 10000
+snap big-sees