summaryrefslogtreecommitdiff
path: root/test/snapshots/views.snap
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-06 03:20:04 -0300
committerGabriel Schneider <[email protected]>2026-11-06 04:13:33 -0300
commit4c2125ecf47588d33f9894c1fdf2833d0512f3b4 (patch)
treec76510fd390e20187554ea86a3fdabd2dfb65ca5 /test/snapshots/views.snap
parentd1d5d3cfb18841604bba2057eeb3598f729b4475 (diff)
downloadpardes-4c2125ecf47588d33f9894c1fdf2833d0512f3b4.tar.gz
pardes-4c2125ecf47588d33f9894c1fdf2833d0512f3b4.zip
client #2, one frontend a session: the daemon answers `other <name>` for an attach to a session attached already (as it did for one of the other kind), so a second `pardes --attach` or `pardes-gui --attach` on this machine is a replica client through the replica socket, the path a remote one takes; a session tells the daemon its clients (SO_PEERCRED on each replica socket, at every join and leave) and `--ps` lists `client <pid> <command>` under it; the tty's per-terminal Screens (Screen.create/drop/destroy, primary, its stub and Killed slot), the Poster and its `from` input, the Gui's window-fields swap (window_fields, GuiWindow, copyWindow, freshWindow, follow, route, openAnotherWindow, closeView, windowsOpen, closeOtherWindows, resumeWindows), drawOthers and every harness's extra terminals (snapshot.zig's `start ... views=N` and `view <k>`, e2e_harness's initView and drainOthers, PARDES_TEST_VIEWS in both frontends, the GUI feed's `view;<k>`, the monkey's --views) go; the pump draws the one view this process shows (views.shown), through drawOne when a client's input was the last; an Upgrade from a build that kept a second terminal of its own lets it go (its stub told it is detached) and closes its view; deleted: views.snap, views-term.snap and views-pan.snap with their goldens (the in-process second terminal they drove is gone; views.zig's unit tests keep the per-view cursor, layout, register, sizing, closing and panning behaviour, test/replicas.zig and the soak the views of clients); the two views.zig tests that drew through drawOthers draw through drawOne; daemon.py's second terminal is a client listed by --ps, typed into in both terminals, detached from inside and closed; its second window a client listed by --ps and closed; the reference and next-daemon.md say so; no golden changes; gates: core-test 956/956 both, behaviour-test 248/248 both, unit-test 1487/1488 tui and 1530/1531 gui, pane-test 171/172 both, snap all 102 ok, process-test 0 of 37 failed on both, hxdiff 19 and hxparity 6 mismatches (the base's names), hxgolf 0, replicas, addon-test, gui-golden and monkey-gui 0 of 1 failed, daemon.py main, --window-clients and --gui ok, soak local pass (differ, mispred, view_bad, lost 0)
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/snapshots/views.snap')
-rw-r--r--test/snapshots/views.snap57
1 files changed, 0 insertions, 57 deletions
diff --git a/test/snapshots/views.snap b/test/snapshots/views.snap
deleted file mode 100644
index eba26bae..00000000
--- a/test/snapshots/views.snap
+++ /dev/null
@@ -1,57 +0,0 @@
-# Two terminals on one session, each a view of it (src/views.zig): each its
-# own layout, focus, cursor and scroll over the same panes. An edit typed in
-# one is in the other; a line yanked in one is put in the other (registers
-# are the session's); Newcol in one leaves the other's columns; Detach in
-# one lets that terminal go and leaves the other drawing.
-config Verbose off
-lines v.txt 120
-start 24 80 views=2 v.txt
-wait 8000 line 1
-stable 500 10000
-snap one
-view 2
-wait 8000 line 1
-stable 500 10000
-snap two
-# Typed in view 1: in view 2 too.
-view 1
-key i
-text EDIT-ONE
-key esc
-settle 100
-stable 400 8000
-snap one-edit
-view 2
-stable 400 8000
-snap two-sees
-# Scrolled in view 2: view 1 stays at the top.
-key pgdn
-stable 400 8000
-snap two-down
-view 1
-stable 400 8000
-snap one-top
-# Yanked in view 1, put in view 2.
-key x y
-stable 400 8000
-view 2
-key p
-stable 400 8000
-snap two-put
-# A column in view 2 only.
-key space
-text cn
-stable 400 8000
-snap two-col
-view 1
-stable 400 8000
-snap one-col
-# Detached in view 2: its terminal let go, view 1 drawing on.
-view 2
-key space
-text sD
-stable 400 8000
-view 1
-key j
-stable 400 8000
-snap one-after