diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-29 19:36:11 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-29 21:13:33 -0300 |
| commit | cc26fe74e092803ac2977801bf6510e05b394c29 (patch) | |
| tree | edb5461b54c26269cefbe0407df9bed89d07182d /test/web-snapshots | |
| parent | 2eb8860b2ca05c426f3962661441aaee13d3be44 (diff) | |
| download | pardes-cc26fe74e092803ac2977801bf6510e05b394c29.tar.gz pardes-cc26fe74e092803ac2977801bf6510e05b394c29.zip | |
web: a dump is a .dump by name everywhere (the download, the embedded fixture, -l's help); the touch check resizes a pane by its grip, there being no rule between panes
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'test/web-snapshots')
| -rw-r--r-- | test/web-snapshots/touch.mjs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/web-snapshots/touch.mjs b/test/web-snapshots/touch.mjs index 3793c0f9..6ced7a29 100644 --- a/test/web-snapshots/touch.mjs +++ b/test/web-snapshots/touch.mjs @@ -192,14 +192,15 @@ export default async function ({ grid, touch, wait, stable, delay, evaluate, mou assert.deepEqual(reflected.lines.slice(0, sharedRows), original.lines.slice(0, sharedRows), "Look must read the source pane body"); const center = Math.floor(frame.cols / 2); - const separator = Math.max(original.top, reflected.top) - 1; + // No rule between panes: the lower one's grip, its tag's gutter, moves it. + const separator = Math.max(original.top, reflected.top); const distance = original.top < reflected.top ? 4 : -4; - finger = await touch("down", 2, center, separator, null); + finger = await touch("down", 2, 0, separator, null); for (let step = 1; step <= 8; step++) { - finger = await touch("move", 2, center, separator + distance * step / 8, finger); + finger = await touch("move", 2, 0, separator + distance * step / 8, finger); await delay(20); } - await touch("up", 2, center, separator + distance, finger); + await touch("up", 2, 0, separator + distance, finger); await stable(100, 5000); frame = await grid(); assert.equal(tags(frame).length, 2); |
