summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-05 13:08:44 -0300
committerGabriel Schneider <[email protected]>2026-11-05 15:21:15 -0300
commit1b2ac091200e9192f3677abe161217ba82463606 (patch)
tree8fe35cf6edaa032e4650a631598dfab2fc4aabb5 /test
parent1870d06248f884439cb2ec4ef8f1b03952df2eb8 (diff)
downloadpardes-1b2ac091200e9192f3677abe161217ba82463606.tar.gz
pardes-1b2ac091200e9192f3677abe161217ba82463606.zip
effects out, the message animations: a message no longer falls into its row and dissolves out of it; it shows at once and goes when it has lingered, its lifetime the one deadline the core keeps for it (MessageLinger, a wait nextWake jumps in one step); MessageAnimation, MessageFall and MessageDissolve go with their settings, the entering and leaving phases (Pane.MessagePhase is shown or lingering), Messages.messageMotion and noticeLife, the notice band's colour blend toward the page, Layer.slide and fade, and the window's offset band, its clip to the body and its rule's fade; no frontend fades a message of its own (the window would have to see a notice come and go between frames for a 150 ms fade); the snapshot harness's, kitty harness's and casts' inits lose `MessageAnimation off`; the message tests keep their linger and stacking and lose the fall and dissolve, and `a notice leaves quicker than it arrives` goes; GUI goldens 10 and 12 to 17 change, the golden session having run with MessageAnimation on by default: a message dismissed while it fell stayed up (its dismissal undone by the next announcement), and FocusTint's stood on in every scene after; the tree before this change with MessageAnimation off draws exactly these frames, all sixteen byte for byte
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test')
-rw-r--r--test/gui-goldens.txt14
-rw-r--r--test/kitty_harness.zig2
-rw-r--r--test/record_casts.py2
-rw-r--r--test/snapshot.zig2
4 files changed, 10 insertions, 10 deletions
diff --git a/test/gui-goldens.txt b/test/gui-goldens.txt
index 1160cf92..9fcc4b2e 100644
--- a/test/gui-goldens.txt
+++ b/test/gui-goldens.txt
@@ -7,10 +7,10 @@
07-prompt-notice 4b1511f42b1cc06d3fe8b07e44a296a6c3fb2a37788cf0e9b5b1c7837a00993b
08-wide-glyph-edges c200d9fd0254af6b39a6387a074b1e29efeb3bd4114b373f83650a8bae8900ad
09-collapsed-focus-tint 4ac6f25f742ad68ea00a5033fd6c6c785b3426a0045499f046f99db9310c5721
-10-tagbottom 81ba5c104a359f7540bdc99ad7c24b684b0328915d90c3af606df637416190e6
-12-multiline-tag de215baa054a8435ce52356576977bd7c0b556295b9032e347d50682b8533722
-13-image f5913611e7227eb16733ca778a53621bb49f92489a956c7f8788a7d1a834e153
-14-theme-ink 80b0623442b5a4e22f508355351ca4a31b43d9bfd7e7fb63bc054c5274c98e6d
-15-theme-acme-light 6e2ba713570d3d2baeaf927218d21f497a43b1d1fc59e7a3eff68f213e5cf7f7
-16-debug 776b774f85219e9ced28168e0b90ef4473a8687d1cf14747d21b129dd5aaea98
-17-terminal 5f192b2fff53c66d154f4ad310d07c168838172d85cc59ba0fd51720d6abba2e
+10-tagbottom 224d369c583348a9bcdcc4d2ef66529a79da18bfff82ab401af8970f03fafabb
+12-multiline-tag 09fe9f8841a14fe3379aa2d87d82fc817f9c011444261d635cec235a32e9a866
+13-image 318720734099917fe92694dfb52f9304e61efb53ff76118621762498b9b114c1
+14-theme-ink 5ce5d040782d7b019da22109867e07ae212ea175b4527b7d2c1c5bcfca055793
+15-theme-acme-light d81855e3204cbb698731cfd72519b7e3454c6b0ac734c01228004c8ee60f8683
+16-debug daef379c743b67f6be556a7302532adae9b426de8f0d75979b54dcfd6f23ff29
+17-terminal e74702198a47fe8c6e1cf07e985cf579546a03658e3662385744bd807c9dbb00
diff --git a/test/kitty_harness.zig b/test/kitty_harness.zig
index 204dae69..b9508946 100644
--- a/test/kitty_harness.zig
+++ b/test/kitty_harness.zig
@@ -131,7 +131,7 @@ fn hermetic(arena: std.mem.Allocator, base: [:0]const u8, gui: bool) !void {
if (libc.mkdir(config_home, 0o755) != 0) return error.MkdirFailed;
const config_dir = try std.fmt.allocPrintSentinel(arena, "{s}/pardes", .{config_home}, 0);
if (libc.mkdir(config_dir, 0o755) != 0) return error.MkdirFailed;
- try eh.writeFile(try std.fmt.allocPrintSentinel(arena, "{s}/init", .{config_dir}, 0), "Shell bash\nTheme helix\nMessageAnimation off\nMessageLinger 0\n");
+ try eh.writeFile(try std.fmt.allocPrintSentinel(arena, "{s}/init", .{config_dir}, 0), "Shell bash\nTheme helix\nMessageLinger 0\n");
try eh.writeFile(try std.fmt.allocPrintSentinel(arena, "{s}/.bashrc", .{base}, 0), "PS1='$ '\nHISTFILE=\n");
_ = setenv("HISTFILE", "/dev/null", 1);
_ = setenv("TERM", "xterm-256color", 1);
diff --git a/test/record_casts.py b/test/record_casts.py
index bcb106d9..8a31327b 100644
--- a/test/record_casts.py
+++ b/test/record_casts.py
@@ -858,7 +858,7 @@ def make_home(work):
# No animation or blink: a frame drawn on a timer would land in the cast
# wherever the wall clock put it.
(home / 'config/pardes/init').write_text(
- 'Theme orchard\nShell /bin/sh\nMessageLinger 0\nMessageAnimation off\nCursorBlink off\n')
+ 'Theme orchard\nShell /bin/sh\nMessageLinger 0\nCursorBlink off\n')
(home / '.gitconfig').write_text('[log]\n\tabbrevCommit = true\n[color]\n\tui = always\n')
return home
diff --git a/test/snapshot.zig b/test/snapshot.zig
index 00585018..dc4f2604 100644
--- a/test/snapshot.zig
+++ b/test/snapshot.zig
@@ -645,7 +645,7 @@ fn runScript(arena: std.mem.Allocator, exe_z: [:0]const u8, script_path: []const
try mkdir(arena, pardes_config, false);
// Messages leave the moment they are dismissed, as goldens have always
// recorded: a linger or a dissolve is time, and time cannot be a golden.
- try eh.writeFile(try std.fmt.allocPrintSentinel(arena, "{s}/init", .{pardes_config}, 0), "Shell bash\nMessageAnimation off\nMessageLinger 0\n");
+ try eh.writeFile(try std.fmt.allocPrintSentinel(arena, "{s}/init", .{pardes_config}, 0), "Shell bash\nMessageLinger 0\n");
_ = setenv("TERM", "xterm-256color", 1);
_ = setenv("LC_ALL", "C", 1);
// a wall clock cannot live in a golden; everything that would print one