summaryrefslogtreecommitdiff
path: root/test/snapshots
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-08 23:37:38 -0300
committerGabriel Schneider <[email protected]>2026-11-09 01:28:28 -0300
commit9b50cfd1ebc21a0fd043fc68a2c305205f449742 (patch)
tree3013238c72ac52897566dd534d7e5ecf6231d711 /test/snapshots
parentb1769aba4a7c1984ab09bd3c90b69177b14c42d8 (diff)
downloadpardes-9b50cfd1ebc21a0fd043fc68a2c305205f449742.tar.gz
pardes-9b50cfd1ebc21a0fd043fc68a2c305205f449742.zip
tests: the theme snapshot scripts (6: theme themesel syntax markup pagercolor cursorline) are process cases, test/process/tty_themes.zig, their goldens unchanged; checked against the old runner by the tty dropping bold (the same 5 fail in both)
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/snapshots')
-rw-r--r--test/snapshots/cursorline.snap25
-rw-r--r--test/snapshots/markup.snap18
-rw-r--r--test/snapshots/pagercolor.snap24
-rw-r--r--test/snapshots/syntax.snap19
-rw-r--r--test/snapshots/theme.snap109
-rw-r--r--test/snapshots/themesel.snap151
6 files changed, 0 insertions, 346 deletions
diff --git a/test/snapshots/cursorline.snap b/test/snapshots/cursorline.snap
deleted file mode 100644
index fab438f1..00000000
--- a/test/snapshots/cursorline.snap
+++ /dev/null
@@ -1,25 +0,0 @@
-# cursor-line gutter: the line number on the cursor's row gets quiet bold ink
-# and follows modal movement (gg to the top, then jjj down three lines)
-lines cur.txt 20
-start 31 150 -n 3
-wait 8000 cur.txt
-stable 700 20000
-press left 5 9
-release left 5 9
-stable 400 5000
-key i
-text cur.txt
-key esc
-settle 100
-stable 400 5000
-press right 6 9
-release right 6 9
-stable 700 15000
-key g g
-stable 400 5000
-snap top
-snapstyle top
-key j j j
-stable 400 5000
-snap down3
-snapstyle down3
diff --git a/test/snapshots/markup.snap b/test/snapshots/markup.snap
deleted file mode 100644
index dc910c70..00000000
--- a/test/snapshots/markup.snap
+++ /dev/null
@@ -1,18 +0,0 @@
-# markup: the two prose grammars. Typst paints headings and the `#` code sigil
-# in the keyword colour, bold in the bold-attribute slot, italics and raw spans
-# in their own; markdown needs a SECOND grammar (markdown_inline) to see bold
-# and italics at all, and both languages inject a tagged code block's language
-file paper.typ = Typst heading\n\nProse with *bold* and _italic_ words, a `raw` span,\nand #emph[call] plus #let n = 42\n\n```zig\nfn widget() u8 { return 99; }\n```\n
-file notes.md # Markdown heading with *italic*\n\nProse with **bold**, *italic* and an `inline` span.\n\n```zig\nfn gadget() u8 { return 77; }\n```\n
-start 25 92 paper.typ
-wait 8000 Typst heading
-wait 8000 widget
-stable 700 20000
-snap typst
-snapstyle typst
-start 25 92 notes.md
-wait 8000 Markdown heading
-wait 8000 gadget
-stable 700 20000
-snap markdown
-snapstyle markdown
diff --git a/test/snapshots/pagercolor.snap b/test/snapshots/pagercolor.snap
deleted file mode 100644
index 70630b0d..00000000
--- a/test/snapshots/pagercolor.snap
+++ /dev/null
@@ -1,24 +0,0 @@
-# `pardes -` keeps a program's colours: its SGR
-# becomes the +Pager's own colours over the plain text (red through the
-# theme's palette, truecolor as given, bold and underline, a man page's
-# overstrike), and every other escape (the OSC title) is dropped. The
-# needles waited for are split by escapes in the typed line, so only the
-# paged text holds them.
-start 50 100
-wait 8000 $
-stable 700 20000
-text printf '\033]0;title\007\033[31mred\033[m \033[1;32mbold green\033[m \033[38;2;200;100;0mrgb\033[m \033[4mul\033[m N\bNA\bAM\bME\bE _\bu_\bs plain\n' | $(readlink /proc/$PPID/exe) -
-key enter
-wait 20000 red bold green
-stable 700 20000
-snap pager
-snapstyle pager-colours
-# A coloured diff: the rows pardes tints as added or removed are drawn as
-# its own diff, and git's colours stay on the rest (the bold header, the
-# cyan hunk line, the yellow commit line).
-text printf '\033[33mcommit 0123\033[33mabc\033[m\n\033[1mdiff --git a/x b/x\033[m\n\033[1m--- a/x\033[m\n\033[1m+++ b/x\033[m\n\033[36m@@ -1 +1 @@\033[m\n\033[31m-old\033[m\n\033[32m+new\033[m\n' | $(readlink /proc/$PPID/exe) -
-key enter
-wait 20000 0123abc
-stable 700 20000
-snap pager-diff
-snapstyle pager-diff-colours
diff --git a/test/snapshots/syntax.snap b/test/snapshots/syntax.snap
deleted file mode 100644
index 85aae5c8..00000000
--- a/test/snapshots/syntax.snap
+++ /dev/null
@@ -1,19 +0,0 @@
-# tree-sitter: open a .zig file, keyword/string/number/comment colors on;
-# edit re-highlights
-file demo.zig const std = @import("std"); // greet\npub fn main() void {\n var x: u32 = 42;\n _ = x;\n}
-start 31 150 -n 3
-wait 8000 demo.zig
-stable 700 20000
-press left 5 9
-release left 5 9
-stable 400 5000
-key i
-text demo.zig
-key esc
-settle 100
-press right 6 9
-release right 6 9
-wait 10000 @import
-stable 700 15000
-snap zig-open
-snapstyle zig-open
diff --git a/test/snapshots/theme.snap b/test/snapshots/theme.snap
deleted file mode 100644
index 5b9544cf..00000000
--- a/test/snapshots/theme.snap
+++ /dev/null
@@ -1,109 +0,0 @@
-# Native Pardes themes lead the ring. Capture both text and cell styles so
-# every palette proves the editor, tags and embedded terminal share its colors.
-# The legacy helix/dark/acme choices stay reachable, followed by generated data.
-file t.txt x
-start 31 100 -n 3
-wait 8000 t.txt
-stable 700 20000
-# NextColor is no default word of the workspace tag: typed onto its end
-press left 99 1
-release left 99 1
-key i
-key space
-text NextColor
-key esc
-settle 100
-stable 700 10000
-snap orchard
-snapstyle orchard
-press middle @NextColor 1
-release middle @NextColor 1
-stable 700 10000
-snap dusk
-snapstyle dusk
-press middle @NextColor 1
-release middle @NextColor 1
-stable 700 10000
-snap ink
-snapstyle ink
-press middle @NextColor 1
-release middle @NextColor 1
-stable 700 10000
-snap paper
-snapstyle paper
-press middle @NextColor 1
-release middle @NextColor 1
-stable 700 10000
-snap daybreak
-snapstyle daybreak
-press middle @NextColor 1
-release middle @NextColor 1
-stable 700 10000
-snap atelier
-snapstyle atelier
-press middle @NextColor 1
-release middle @NextColor 1
-stable 700 10000
-snap forge
-snapstyle forge
-press middle @NextColor 1
-release middle @NextColor 1
-stable 700 10000
-snap lagoon
-snapstyle lagoon
-press middle @NextColor 1
-release middle @NextColor 1
-stable 700 10000
-snap solarium
-snapstyle solarium
-press middle @NextColor 1
-release middle @NextColor 1
-stable 700 10000
-snap spectrum
-snapstyle spectrum
-press middle @NextColor 1
-release middle @NextColor 1
-stable 700 10000
-snap harvest
-snapstyle harvest
-press middle @NextColor 1
-release middle @NextColor 1
-stable 700 10000
-snap clay
-snapstyle clay
-press middle @NextColor 1
-release middle @NextColor 1
-stable 700 10000
-snap forge-black
-snapstyle forge-black
-press middle @NextColor 1
-release middle @NextColor 1
-stable 700 10000
-snap forge-soft
-snapstyle forge-soft
-press middle @NextColor 1
-release middle @NextColor 1
-stable 700 10000
-snap orchard-black
-snapstyle orchard-black
-press middle @NextColor 1
-release middle @NextColor 1
-stable 700 10000
-snap acme
-snapstyle acme
-press middle @NextColor 1
-release middle @NextColor 1
-stable 700 10000
-snap lapis
-snapstyle lapis
-press middle @NextColor 1
-release middle @NextColor 1
-stable 700 10000
-snap dark-plus
-snapstyle dark-plus
-press middle @NextColor 1
-release middle @NextColor 1
-stable 700 10000
-# After orchard_black: acme and lapis, then the first faithful ports.
-snap solarized-dark
-snapstyle solarized-dark
diff --git a/test/snapshots/themesel.snap b/test/snapshots/themesel.snap
deleted file mode 100644
index d54c328f..00000000
--- a/test/snapshots/themesel.snap
+++ /dev/null
@@ -1,151 +0,0 @@
-# RULE: a results buffer is a list of things you can RUN, and its traits say
-# what a ROW IS. Every list before this one held LOCATIONS — a row with a
-# `path:LINE:COL` word inside it — so n/N select that word and Enter Looks it.
-# `SPC t t` (Themes) opens the first one whose rows are COMMANDS: `Theme
-# <name>`, exactly the line you would type, with no path in it to pick out, so
-# n/N select the WHOLE ROW. One motion, two grains, and the same split either
-# way — the step only SELECTS, and Tab (Exec, or the middle button, which is
-# the same builtin) is what RUNS what it left. Walking the list therefore
-# wears nothing as you pass; the theme changes on the Tab, and picking one is
-# running it and stopping. There is still no preview state, nothing to confirm
-# and nothing to cancel: the row you ran is the theme you have.
-#
-# The whole ring is in the buffer, in sections: the fifteen native themes,
-# acme and lapis, the faithful ports a family at a time, the legacy helix and
-# dark, then everything exported from the vendored helix .toml and zed .json
-# files, sorted. The colors below are
-# read with snapstyle, so this proves the generated themes are real data and
-# not just names in a list.
-lines t.txt 40
-start 31 100 t.txt
-wait 8000 t.txt
-stable 700 20000
-snap boot
-# SPC t t: the list lands below the pane that asked, focus stays HERE — but a
-# fresh output buffer is where the walk's ring starts, so the first n goes
-# into the list and every one after it carries on down it.
-key space t t
-wait 10000 Theme orchard
-stable 700 15000
-snap list
-# n selects row 1 whole and Tab runs it: `Theme orchard`, which is already the
-# boot theme, so only the selection moves. That is the honest first step — an
-# idempotent command has to be safe to run.
-key space j n
-key tab
-stable 700 15000
-snap step-orchard
-snapstyle step-orchard
-# ...and now the theme really does change under the cursor, one row at a time
-key space j n
-key tab
-stable 700 15000
-snap step-dusk
-snapstyle step-dusk
-# Selection alone can skip rows without previewing or applying their themes.
-# Four steps reach atelier, the Acme homage; Tab then applies it.
-key space j n
-key space j n
-key space j n
-key space j n
-key tab
-stable 700 15000
-snap step-atelier
-snapstyle step-atelier
-key space j n
-key tab
-stable 700 15000
-snap step-forge
-snapstyle step-forge
-key space j n
-key tab
-stable 700 15000
-snap step-lagoon
-snapstyle step-lagoon
-key space j n
-key tab
-stable 700 15000
-snap step-solarium
-snapstyle step-solarium
-key space j n
-key tab
-stable 700 15000
-snap step-spectrum
-snapstyle step-spectrum
-key space j n
-key tab
-stable 700 15000
-snap step-harvest
-snapstyle step-harvest
-key space j n
-key tab
-stable 700 15000
-snap step-clay
-snapstyle step-clay
-# The three native contrast variants precede acme and lapis, and then the first
-# ported family's section. Its heading
-# and blank separator are not stops in the n/N command walk.
-key space j n
-key tab
-stable 700 15000
-snap step-forge-black
-snapstyle step-forge-black
-key space j n
-key tab
-stable 700 15000
-snap step-forge-soft
-snapstyle step-forge-soft
-key space j n
-key tab
-stable 700 15000
-snap step-orchard-black
-snapstyle step-orchard-black
-key space j n
-key tab
-stable 700 15000
-snap step-acme
-snapstyle step-acme
-key space j n
-key tab
-stable 700 15000
-snap step-lapis
-snapstyle step-lapis
-key space j n
-key tab
-stable 700 15000
-snap step-dark-plus
-snapstyle step-dark-plus
-# across the Visual Studio Code section into Solarized: a section heading and
-# its blank line are skipped like the first. (The imported half, past the
-# legacy section, is sorted by name, so the ring is the same everywhere
-# whatever order the directory read handed the files over in.)
-key space j n
-key tab
-stable 700 15000
-snap step-solarized-dark
-snapstyle step-solarized-dark
-# N walks back the same way — it is the exact inverse of n — and the Tab after
-# it runs the row it lands on, so the theme rewinds too
-key space j p
-key tab
-stable 700 15000
-snap step-back
-snapstyle step-back
-# PICKING is just stopping: the theme the last Tab ran is still on, and the
-# list is closed with an explicit Del. No window move is needed to get there —
-# the walk lands IN the pane it steps, so the cursor has been in the list
-# since the first n. Body-normal Esc is Last, so it deliberately leaves this
-# document-like output buffer open.
-# ...and the WHOLE ring is in there: `ge` to the last line, which
-# only reaches `Theme zenburn` if nothing truncated the buffer on the way in. It
-# is an ordinary file pane, so it scrolls like one; a motion runs nothing and
-# neither does a step, so no theme changes here and the one the last Tab chose
-# is still on.
-key g e
-stable 700 15000
-snap tail
-key space d
-settle 100
-stable 700 15000
-snap picked
-snapstyle picked