summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/web-snapshots/touch.mjs9
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);