summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-07-06 20:36:38 -0300
committerGabriel Schneider <[email protected]>2026-08-01 15:02:07 -0300
commitd0ba070a87c54c538e5f788485391b0af927d0fb (patch)
tree46dc05d158457b48a9e9b4f2b1fbc07c59e161b0 /test
parent0485446709e6190ff54264cd0e376fc8b47e3d64 (diff)
downloadpardes-d0ba070a87c54c538e5f788485391b0af927d0fb.tar.gz
pardes-d0ba070a87c54c538e5f788485391b0af927d0fb.zip
boot with a single shell pane (was three). Options.shells (default 1; >=3 gives the classic two-column boot), -n <count> CLI flag. The 26 legacy snap scripts pin -n 3 on their start line so their coordinates and goldens stay valid; boot.snap tests the new default (golden regenerated: one full-width pane). 28/28 green.
Diffstat (limited to 'test')
-rw-r--r--test/snapshots/boot.golden66
-rw-r--r--test/snapshots/cursorline.snap2
-rw-r--r--test/snapshots/dump.snap2
-rw-r--r--test/snapshots/edit.snap2
-rw-r--r--test/snapshots/exec-bigdrag.snap2
-rw-r--r--test/snapshots/exec.snap2
-rw-r--r--test/snapshots/fileedit.snap2
-rw-r--r--test/snapshots/fsearch.snap2
-rw-r--r--test/snapshots/ghostty-mid.snap2
-rw-r--r--test/snapshots/images.snap2
-rw-r--r--test/snapshots/layout-close.snap2
-rw-r--r--test/snapshots/layout-open.snap2
-rw-r--r--test/snapshots/load.snap2
-rw-r--r--test/snapshots/look-center.snap2
-rw-r--r--test/snapshots/look-dir.snap2
-rw-r--r--test/snapshots/look-file.snap2
-rw-r--r--test/snapshots/modal.snap2
-rw-r--r--test/snapshots/respawn.snap2
-rw-r--r--test/snapshots/scroll.snap2
-rw-r--r--test/snapshots/scrolloff.snap2
-rw-r--r--test/snapshots/syntax.snap2
-rw-r--r--test/snapshots/tag.snap2
-rw-r--r--test/snapshots/theme.snap2
-rw-r--r--test/snapshots/tty.snap2
-rw-r--r--test/snapshots/ttylook.snap2
-rw-r--r--test/snapshots/tutor.snap2
-rw-r--r--test/snapshots/windowops.snap2
27 files changed, 59 insertions, 59 deletions
diff --git a/test/snapshots/boot.golden b/test/snapshots/boot.golden
index e17d9f3d..8f9129a9 100644
--- a/test/snapshots/boot.golden
+++ b/test/snapshots/boot.golden
@@ -1,8 +1,10 @@
== snap boot grid=100x30 cursor=4,4
|Kill Newcol Tutor Debug Colors NextColor Dump
-| NOR /tmp/pardes-snap/boot/cwd Del NOR /tmp/pardes-snap/boot/cwd Del
+| NOR /tmp/pardes-snap/boot/cwd Del
+|
+| hello.txt
+|
|
-| hello.txt hello.txt
|
|
|
@@ -15,9 +17,7 @@
|
|
|
-| NOR /tmp/pardes-snap/boot/cwd Del
|
-| hello.txt
|
|
|
@@ -31,32 +31,32 @@
|
== style boot
|0: 0-44 #969696,#2c2a3e, 45-99 d,#2c2a3e,
-|1: 0-1 d,#6e4fd0, 2-34 #969696,#2c2a3e, 35-49 d,#2c2a3e, 50-51 d,#383c54, 52-84 #969696,#2c2a3e, 85-99 d,#2c2a3e,
-|2: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|3: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|4: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|5: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|6: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|7: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|8: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|9: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|10: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|11: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|12: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|13: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|14: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|15: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|16: 0-1 d,#383c54, 2-34 #969696,#2c2a3e, 35-49 d,#2c2a3e, 50-51 d,#525252, 52-99 d,d,
-|17: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|18: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|19: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|20: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|21: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|22: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|23: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|24: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|25: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|26: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|27: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|28: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
-|29: 0-1 d,#525252, 2-49 d,d, 50-51 d,#525252, 52-99 d,d,
+|1: 0-1 d,#6e4fd0, 2-34 #969696,#2c2a3e, 35-99 d,#2c2a3e,
+|2: 0-1 d,#525252, 2-99 d,d,
+|3: 0-1 d,#525252, 2-99 d,d,
+|4: 0-1 d,#525252, 2-99 d,d,
+|5: 0-1 d,#525252, 2-99 d,d,
+|6: 0-1 d,#525252, 2-99 d,d,
+|7: 0-1 d,#525252, 2-99 d,d,
+|8: 0-1 d,#525252, 2-99 d,d,
+|9: 0-1 d,#525252, 2-99 d,d,
+|10: 0-1 d,#525252, 2-99 d,d,
+|11: 0-1 d,#525252, 2-99 d,d,
+|12: 0-1 d,#525252, 2-99 d,d,
+|13: 0-1 d,#525252, 2-99 d,d,
+|14: 0-1 d,#525252, 2-99 d,d,
+|15: 0-1 d,#525252, 2-99 d,d,
+|16: 0-1 d,#525252, 2-99 d,d,
+|17: 0-1 d,#525252, 2-99 d,d,
+|18: 0-1 d,#525252, 2-99 d,d,
+|19: 0-1 d,#525252, 2-99 d,d,
+|20: 0-1 d,#525252, 2-99 d,d,
+|21: 0-1 d,#525252, 2-99 d,d,
+|22: 0-1 d,#525252, 2-99 d,d,
+|23: 0-1 d,#525252, 2-99 d,d,
+|24: 0-1 d,#525252, 2-99 d,d,
+|25: 0-1 d,#525252, 2-99 d,d,
+|26: 0-1 d,#525252, 2-99 d,d,
+|27: 0-1 d,#525252, 2-99 d,d,
+|28: 0-1 d,#525252, 2-99 d,d,
+|29: 0-1 d,#525252, 2-99 d,d,
diff --git a/test/snapshots/cursorline.snap b/test/snapshots/cursorline.snap
index f9b3de5b..49872485 100644
--- a/test/snapshots/cursorline.snap
+++ b/test/snapshots/cursorline.snap
@@ -1,7 +1,7 @@
# cursor-line gutter: the line number on the cursor's row takes the tag style
# and follows modal movement (gg to the top, then jjj down three lines)
lines cur.txt 20
-start 30 100
+start 30 100 -n 3
wait 8000 cur.txt
stable 700 20000
press left 5 8
diff --git a/test/snapshots/dump.snap b/test/snapshots/dump.snap
index 85664c2f..79a17954 100644
--- a/test/snapshots/dump.snap
+++ b/test/snapshots/dump.snap
@@ -1,7 +1,7 @@
# the Dump builtin serializes the session to /tmp/pardes-dump.zon; the ZON must
# be byte-identical between old and new (golden generated from the OLD binary)
file d.txt x
-start 30 100
+start 30 100 -n 3
wait 8000 d.txt
stable 700 20000
press left 5 8
diff --git a/test/snapshots/edit.snap b/test/snapshots/edit.snap
index 660add70..52e287d8 100644
--- a/test/snapshots/edit.snap
+++ b/test/snapshots/edit.snap
@@ -1,6 +1,6 @@
# insert-mode splice: click into a body row, type, escape back to normal
file e.txt x
-start 30 100
+start 30 100 -n 3
wait 8000 e.txt
stable 700 20000
press left 5 10
diff --git a/test/snapshots/exec-bigdrag.snap b/test/snapshots/exec-bigdrag.snap
index dae92205..9158f08d 100644
--- a/test/snapshots/exec-bigdrag.snap
+++ b/test/snapshots/exec-bigdrag.snap
@@ -3,7 +3,7 @@
# 64-slot effect ring and panic the core (assert in emit). Needs a big grid:
# the selection must exceed 64*64 bytes, more than any 30x100 pane can hold.
lines big.txt 3000
-start 60 200
+start 60 200 -n 3
wait 8000 big.txt
stable 500 20000
press left 105 8
diff --git a/test/snapshots/exec.snap b/test/snapshots/exec.snap
index a588d9f3..a66285d5 100644
--- a/test/snapshots/exec.snap
+++ b/test/snapshots/exec.snap
@@ -2,7 +2,7 @@
# the middle drag captures the kept left selection as a trailing argument;
# middle-click Del on the pane tag closes the pane
file e.txt x
-start 30 100
+start 30 100 -n 3
wait 8000 e.txt
stable 700 20000
press left 5 8
diff --git a/test/snapshots/fileedit.snap b/test/snapshots/fileedit.snap
index bd259c8b..982966ab 100644
--- a/test/snapshots/fileedit.snap
+++ b/test/snapshots/fileedit.snap
@@ -1,6 +1,6 @@
# file panes: modal editing on real content, undo, Save writes to disk
lines f.txt 20
-start 30 100
+start 30 100 -n 3
wait 8000 f.txt
stable 700 20000
press left 5 8
diff --git a/test/snapshots/fsearch.snap b/test/snapshots/fsearch.snap
index eab702cb..ef56c6ba 100644
--- a/test/snapshots/fsearch.snap
+++ b/test/snapshots/fsearch.snap
@@ -4,7 +4,7 @@
# OSC 133 semantic marks) and look it — the file pane scrolls to path:NNN.
# Esc abandons the input; a no-match search leaves n with nowhere to go.
file g.txt l1\nMARK a\nl3\nl4\nl5\nMARK b\nl7\nl8\nl9\nMARK c\nl11\nl12
-start 30 120
+start 30 120 -n 3
wait 8000 g.txt
stable 700 20000
# open g.txt: type the name in the shell, look it (as in look-file.snap)
diff --git a/test/snapshots/ghostty-mid.snap b/test/snapshots/ghostty-mid.snap
index 437fce27..792b5572 100644
--- a/test/snapshots/ghostty-mid.snap
+++ b/test/snapshots/ghostty-mid.snap
@@ -8,7 +8,7 @@
# gtk-enable-primary-paste=false (apprt/gtk/class/surface.zig, gcMouseDown/
# gcMouseUp) — the bytes below simply never get sent.
file g.txt x
-start 30 100
+start 30 100 -n 3
wait 8000 g.txt
stable 700 20000
press left 5 8
diff --git a/test/snapshots/images.snap b/test/snapshots/images.snap
index 1b9bf715..2e3e2992 100644
--- a/test/snapshots/images.snap
+++ b/test/snapshots/images.snap
@@ -1,7 +1,7 @@
# image panes: right-click a .ppm opens petscii glyph art (no kitty in the
# harness); the live tag toggles palette (C64<->Term) and Ascii glyphs
ppmdiag pic.ppm
-start 30 100
+start 30 100 -n 3
wait 8000 pic.ppm
stable 700 20000
press left 5 8
diff --git a/test/snapshots/layout-close.snap b/test/snapshots/layout-close.snap
index 63f5cd81..b2f1125b 100644
--- a/test/snapshots/layout-close.snap
+++ b/test/snapshots/layout-close.snap
@@ -2,7 +2,7 @@
# keeps its sizes: Alt-c move-out, tag Del, and shell exit (pty EOF); an
# emptied column hands its width to one neighbor
file marker.txt x
-start 40 140
+start 40 140 -n 3
wait 8000 marker.txt
stable 700 20000
# build a left column of five: Alt-n three times from pane 0 (active follows
diff --git a/test/snapshots/layout-open.snap b/test/snapshots/layout-open.snap
index 773cf70d..30f25995 100644
--- a/test/snapshots/layout-open.snap
+++ b/test/snapshots/layout-open.snap
@@ -4,7 +4,7 @@
# splits only the bottom pane of the rightmost column
dirmk sub
file sub/f.txt echo 'TTY'OK
-start 30 100
+start 30 100 -n 3
wait 8000 sub
stable 700 20000
# give pane 0 (top-left) some content so its content-height split is visible
diff --git a/test/snapshots/load.snap b/test/snapshots/load.snap
index 0a9c9e55..c2e89837 100644
--- a/test/snapshots/load.snap
+++ b/test/snapshots/load.snap
@@ -3,7 +3,7 @@
# own regression baseline). Shell output survives the replay; typed insert runs
# are an overlay and do not (same semantics as the old replay viewer).
file d.txt x
-start 30 100
+start 30 100 -n 3
wait 8000 d.txt
stable 700 20000
key c-b
diff --git a/test/snapshots/look-center.snap b/test/snapshots/look-center.snap
index a56ff038..723e9e36 100644
--- a/test/snapshots/look-center.snap
+++ b/test/snapshots/look-center.snap
@@ -3,7 +3,7 @@
# the same path re-center the existing pane, and a look near line 1 clamps
# the scroll at 0 (no negative scroll)
lines big.txt 200
-start 30 100
+start 30 100 -n 3
wait 8000 big.txt
stable 700 20000
press left 5 8
diff --git a/test/snapshots/look-dir.snap b/test/snapshots/look-dir.snap
index 04b43f6e..38023fbd 100644
--- a/test/snapshots/look-dir.snap
+++ b/test/snapshots/look-dir.snap
@@ -2,7 +2,7 @@
dirmk sub
file sub/inner.txt inner-marker
file top.txt x
-start 30 100
+start 30 100 -n 3
wait 8000 top.txt
stable 700 20000
press left 5 8
diff --git a/test/snapshots/look-file.snap b/test/snapshots/look-file.snap
index 83010317..8bf8168f 100644
--- a/test/snapshots/look-file.snap
+++ b/test/snapshots/look-file.snap
@@ -1,7 +1,7 @@
# right-click look on a typed path:NN opens a file pane scrolled to the line;
# Enter chord on the same path focuses the existing pane (dedup)
lines big.txt 60
-start 30 100
+start 30 100 -n 3
wait 8000 big.txt
stable 700 20000
press left 5 8
diff --git a/test/snapshots/modal.snap b/test/snapshots/modal.snap
index adbfd533..73905175 100644
--- a/test/snapshots/modal.snap
+++ b/test/snapshots/modal.snap
@@ -1,6 +1,6 @@
# helix-modal normal mode: motions, x/v selections, y/d, insert, undo/redo
file words.txt alpha beta
-start 30 100
+start 30 100 -n 3
wait 8000 words.txt
stable 700 20000
key c-b
diff --git a/test/snapshots/respawn.snap b/test/snapshots/respawn.snap
index fbed77e1..60373645 100644
--- a/test/snapshots/respawn.snap
+++ b/test/snapshots/respawn.snap
@@ -1,7 +1,7 @@
# a deleted shell pane's pty lingers in its slot (there is no close effect);
# a later spawn reusing the pane id must reap it instead of tripping the
# drainEffects spawn assert — this exact sequence crashed pre-fix
-start 30 100
+start 30 100 -n 3
wait 8000 Kill Newcol
stable 700 20000
# middle-click Del on the lower-left pane's tag: the pane id is freed while
diff --git a/test/snapshots/scroll.snap b/test/snapshots/scroll.snap
index 8e55224d..dd025474 100644
--- a/test/snapshots/scroll.snap
+++ b/test/snapshots/scroll.snap
@@ -1,6 +1,6 @@
# scrolling: wheel + scrollbar gutter clicks over real scrollback
file s.txt x
-start 30 100
+start 30 100 -n 3
wait 8000 s.txt
stable 700 20000
key c-b
diff --git a/test/snapshots/scrolloff.snap b/test/snapshots/scrolloff.snap
index e231e8de..067e851f 100644
--- a/test/snapshots/scrolloff.snap
+++ b/test/snapshots/scrolloff.snap
@@ -1,7 +1,7 @@
# scrolloff: keyboard motion keeps 3 context rows above/below the cursor,
# clamped at file boundaries (cursor may reach the top/bottom body row there)
lines g.txt 40
-start 30 100
+start 30 100 -n 3
wait 8000 g.txt
stable 700 20000
# right-click the g.txt name in the greeting ls -> file pane, 9 body rows
diff --git a/test/snapshots/syntax.snap b/test/snapshots/syntax.snap
index 690e5d7d..f49387ab 100644
--- a/test/snapshots/syntax.snap
+++ b/test/snapshots/syntax.snap
@@ -1,7 +1,7 @@
# tree-sitter: open a .zig file, keyword/string/number/comment colors on;
# Colors off clears them; edit re-highlights
file demo.zig const std = @import("std"); // greet\npub fn main() void {\n var x: u32 = 42;\n _ = x;\n}
-start 30 100
+start 30 100 -n 3
wait 8000 demo.zig
stable 700 20000
press left 5 8
diff --git a/test/snapshots/tag.snap b/test/snapshots/tag.snap
index f77808cb..0d7be294 100644
--- a/test/snapshots/tag.snap
+++ b/test/snapshots/tag.snap
@@ -1,6 +1,6 @@
# tag editor: click the tag row, edit the tail modally, execute a typed word
file t.txt x
-start 30 100
+start 30 100 -n 3
wait 8000 t.txt
stable 700 20000
# click into the tag tail (after "Del", col past prefix) of pane 0
diff --git a/test/snapshots/theme.snap b/test/snapshots/theme.snap
index 90ce5f85..ed060f03 100644
--- a/test/snapshots/theme.snap
+++ b/test/snapshots/theme.snap
@@ -1,7 +1,7 @@
# topbar builtins: NextColor cycles to acme-light and back; Colors toggles
# the recolor passes off and on
file t.txt x
-start 30 100
+start 30 100 -n 3
wait 8000 t.txt
stable 700 20000
press middle 32 1
diff --git a/test/snapshots/tty.snap b/test/snapshots/tty.snap
index 6d6e0f3e..97eee3f5 100644
--- a/test/snapshots/tty.snap
+++ b/test/snapshots/tty.snap
@@ -1,6 +1,6 @@
# tty mode round-trip: Ctrl-b in, run a command, Ctrl-b out
file m.txt marker
-start 30 100
+start 30 100 -n 3
wait 8000 m.txt
stable 700 20000
key c-b
diff --git a/test/snapshots/ttylook.snap b/test/snapshots/ttylook.snap
index 648dcd42..0779d3f0 100644
--- a/test/snapshots/ttylook.snap
+++ b/test/snapshots/ttylook.snap
@@ -6,7 +6,7 @@
lines big.txt 40
file plain.txt just text
dirmk sub
-start 30 120
+start 30 120 -n 3
wait 8000 big.txt
stable 700 20000
# real shell output mixing lookable and plain rows (two short printfs so the
diff --git a/test/snapshots/tutor.snap b/test/snapshots/tutor.snap
index 6322c92a..3793892a 100644
--- a/test/snapshots/tutor.snap
+++ b/test/snapshots/tutor.snap
@@ -1,5 +1,5 @@
# topbar middle-click Tutor opens the embedded tutor as a file pane top-left
-start 30 100
+start 30 100 -n 3
wait 8000 Kill Newcol
stable 700 20000
press middle 13 1
diff --git a/test/snapshots/windowops.snap b/test/snapshots/windowops.snap
index 7e6cbee4..13e35fc5 100644
--- a/test/snapshots/windowops.snap
+++ b/test/snapshots/windowops.snap
@@ -1,6 +1,6 @@
# hover resize hints, border drags, move drag, Alt-n, Ctrl-w focus, Debug box
file w.txt x
-start 30 100
+start 30 100 -n 3
wait 8000 w.txt
stable 700 20000
# hover over the left column's last col: vertical dash hint