diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/snapshots/look-fd-deep.golden | 30 | ||||
| -rw-r--r-- | test/snapshots/look-fd-deep.snap | 34 |
2 files changed, 64 insertions, 0 deletions
diff --git a/test/snapshots/look-fd-deep.golden b/test/snapshots/look-fd-deep.golden new file mode 100644 index 00000000..c0e0c304 --- /dev/null +++ b/test/snapshots/look-fd-deep.golden @@ -0,0 +1,30 @@ +== snap listed grid=100x31 cursor=4,9 +| Newcol Joincol Find Grep Help Changelog Tutor Dump Themes Config Debug Exit +| New Tty Find Grep Joincol Delcol +|$ /tmp/pardes-snap/look-fd-deep/cwd/a Tty+bash Save Mode Filter Collapse Del +| $ exec timeout --foreground 600 bash -i +| $ cd a && ls && fd +| b top.txt +| b/ +| b/c.txt +| top.txt +| $ +| +| +| +| +| +| +| +| +| +| +| +| /tmp/pardes-snap/look-fd-deep/cwd/+New Save Tty Collapse Del +| 1 +== snap fd-path-looked grid=100x31 cursor=7,11 +|10: /tmp/pardes-snap/look-fd-deep/cwd/a/b/c.txt Save Tty Collapse Del +|11: 1 deep-marker +== snap ls-name-looked grid=100x31 cursor=7,14 +|13: /tmp/pardes-snap/look-fd-deep/cwd/a/top.txt Save Tty Collapse Del +|14: 1 top-marker diff --git a/test/snapshots/look-fd-deep.snap b/test/snapshots/look-fd-deep.snap new file mode 100644 index 00000000..8df0aaaf --- /dev/null +++ b/test/snapshots/look-fd-deep.snap @@ -0,0 +1,34 @@ +# A shell run under a wrapper exec'd over the one pardes started, that +# stays where it started (fish's own `exec 9ns --mntgen -- fish`; timeout +# here): after a cd the pane is where the foreground shell is, not where +# the wrapper is. So a path fd prints two +# directories down (b/c.txt) and a name ls prints (top.txt) look from there. +# The fd path goes first: the file it opens sits in a/b, a directory that +# could not rescue the ls name after it. +dirmk a +dirmk a/b +file a/top.txt top-marker +file a/b/c.txt deep-marker +start 31 100 +wait 8000 $ +stable 700 20000 +text exec timeout --foreground 600 bash -i +key enter +stable 700 20000 +text cd a && ls && fd +key enter +wait 8000 c.txt +wait 8000 cwd/a Tty +stable 700 20000 +snap listed +press right 6 8 +release right 6 8 +wait 10000 deep-marker +stable 700 15000 +snap fd-path-looked +# the ls name, from the shell's directory +press right 8 6 +release right 8 6 +wait 10000 top-marker +stable 700 15000 +snap ls-name-looked |
