summaryrefslogtreecommitdiff
path: root/test/web-snapshots/README.md
blob: 3b1219498ae90eb9409bff8aa80da2212aa730ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Web browser snapshots

`source-list.dump.zon` is a byte-for-byte dump from a running Pardes instance.
It is not assembled or normalized by a fixture generator.

To recapture it:

1. Build and launch the native TTY in this checkout with `PARDES_DUMP` pointing
   at a temporary file.
2. Enter raw TTY mode, run `clear`, then run
   `git ls-files --cached --others --exclude-standard -- '*.zig' | sort`.
   This is the archive generator's tracked-plus-new/nonignored selection in its
   deterministic display order.
3. Leave raw TTY mode, press `gg` so the listing starts at scrollback row zero,
   and middle-click Pardes's `Dump` builtin.
4. Copy the resulting dump into `source-list.dump.zon` without editing it.

The visible `.body` is the first terminal viewport; `.terminal.stream` must
contain the command plus every path reported by Git, and every listed path must
exist. The base64 PTY stream is the real interaction and must contain the
command itself. `source-list.snap` then drives the freestanding WASM + DOM build
through Chromium: top and bottom launcher snapshots jointly cover the complete
listing, then it taps `build.zig`, snapshots packed cell styles (including
Tree-sitter's Zig highlighting), resizes the pane separator, and finally
verifies body scrolling.