From b1769aba4a7c1984ab09bd3c90b69177b14c42d8 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Sun, 8 Nov 2026 23:37:38 -0300 Subject: tests: the columns and layout snapshot scripts (14: colgrip collapse cornerdrag cornerdrag-left delask emptycol layout-close layout-open shrinktag tagalign tagalign2col windownav windowops wheeldrift) are process cases, test/process/tty_layout.zig, their goldens unchanged; checked against the old runner by the tty reading a drag as a motion (the same 7 fail in both); three core breaks (splitBelow at a third, minRows one more, a dropped column's width to its right) fail neither Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- test/snapshots/wheeldrift.snap | 50 ------------------------------------------ 1 file changed, 50 deletions(-) delete mode 100644 test/snapshots/wheeldrift.snap (limited to 'test/snapshots/wheeldrift.snap') diff --git a/test/snapshots/wheeldrift.snap b/test/snapshots/wheeldrift.snap deleted file mode 100644 index 48d3c627..00000000 --- a/test/snapshots/wheeldrift.snap +++ /dev/null @@ -1,50 +0,0 @@ -# the touchpad drift guard (config.wheel_guard_ticks). A two-finger swipe that -# is MEANT to be vertical carries a little sideways drift and the pad turns it -# into wheel_left/wheel_right, so the view used to slide sideways under a plain -# scroll. Every vertical tick re-arms the guard; a horizontal tick spends one -# instead of scrolling. SGR codes are vaxis's: 64/65 = wheel up/down (the -# `wheel` command), 66/67 = wheel RIGHT/left, sent raw as hscroll.snap does. -# The drift ticks here are all rightward on purpose: leftward drift at column 0 -# is clamped away and would prove nothing. -lines drift.txt 20 _0123456789_abcdefghij_ZEND -start 17 70 drift.txt -wait 8000 drift.txt -stable 700 20000 -# the guard protects HSCROLL, and hscroll only exists with soft wrap off (a -# wrapped body has nothing off to the right to drift towards), so turn it off -# first — otherwise every sideways tick is a no-op and the test proves nothing -key space t w -stable 400 5000 -snap home -# a drifting swipe: five ticks down with three sideways ones mixed in. The -# view scrolls DOWN five lines and does not move one column sideways. -wheel down 10 5 -wheel down 10 5 -send \x1b[<66;10;6M -wheel down 10 5 -send \x1b[<66;10;6M -send \x1b[<66;10;6M -wheel down 10 5 -wheel down 10 5 -stable 400 5000 -snap drifted -# the guard is armed at 3 now, so a DELIBERATE horizontal swipe pays it off -# first: these three ticks still move nothing (without the guard they would -# have shifted the text 12 columns) -send \x1b[<66;10;6M -send \x1b[<66;10;6M -send \x1b[<66;10;6M -stable 400 5000 -snap paying -# ...and from the fourth tick on it scrolls freely: two ticks, 8 columns -send \x1b[<66;10;6M -send \x1b[<66;10;6M -stable 400 5000 -snap moved -# vertical again re-arms the guard, so drift is swallowed once more even -# though horizontal was just running -wheel up 10 5 -send \x1b[<66;10;6M -send \x1b[<66;10;6M -stable 400 5000 -snap rearmed -- cgit v1.3