summaryrefslogtreecommitdiff
path: root/test/snapshots/lookloaded.snap
diff options
context:
space:
mode:
Diffstat (limited to 'test/snapshots/lookloaded.snap')
-rw-r--r--test/snapshots/lookloaded.snap39
1 files changed, 39 insertions, 0 deletions
diff --git a/test/snapshots/lookloaded.snap b/test/snapshots/lookloaded.snap
new file mode 100644
index 00000000..03874925
--- /dev/null
+++ b/test/snapshots/lookloaded.snap
@@ -0,0 +1,39 @@
+# a look matches an already-LOADED pane before touching the filesystem: open
+# big.txt:40 from a look, rm the file on disk, then look big.txt:10 — the
+# loaded pane focuses and recenters even though realpath now fails. (This
+# fs-last ordering is what lets the fs-less web build focus dump panes.)
+lines big.txt 60
+start 30 100 -n 3
+wait 8000 big.txt
+stable 700 20000
+press left 5 8
+release left 5 8
+stable 400 5000
+key i
+text big.txt:40 big.txt:10
+key esc
+settle 700
+stable 400 5000
+press right 7 8
+release right 7 8
+stable 700 15000
+snap file-open
+# back to the shell: rm the file from disk in tty mode
+press left 5 11
+release left 5 11
+stable 400 5000
+key c-b
+stable 600 8000
+text rm big.txt; echo GO''NE
+key enter
+wait 8000 GONE
+stable 700 15000
+key c-b
+stable 600 8000
+snap removed
+# look big.txt:10: nothing on disk, but the pane is loaded — it focuses and
+# recenters on line 10 (before this change: realpath fails, look no-ops)
+press right 18 15
+release right 18 15
+stable 700 15000
+snap look-noFS