summaryrefslogtreecommitdiff
path: root/test/process/window.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-19 23:47:50 -0300
committerGabriel Schneider <[email protected]>2026-11-19 23:47:50 -0300
commitd236dff22567c2f563756695598678afb84fbef4 (patch)
tree11c5ed3c0d696587e49bf8ec5a8b2a696d5be718 /test/process/window.zig
parent9d4c94f03c5e34933e80e1069c16df74c2631965 (diff)
parent165f1f61a20dd95a9018177d66e6f4f40a4cb320 (diff)
downloadpardes-d236dff22567c2f563756695598678afb84fbef4.tar.gz
pardes-d236dff22567c2f563756695598678afb84fbef4.zip
integration: the documents as the tree is, with tests that do not depend on the load or the clock's second: pardes-docs (six changes of documents and the changelog) and pardes-test-robust (the corpus's click in one write, the two clock-second core tests, winch, headersweep and grep waiting on what they need, and the language server's false "still loading" message), merged without a conflict on pardes-merge22; tui core-test 848/991 (143 skipped), shell-test 1027/1030
Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test/process/window.zig')
-rw-r--r--test/process/window.zig7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/process/window.zig b/test/process/window.zig
index 687b9000..00450a9b 100644
--- a/test/process/window.zig
+++ b/test/process/window.zig
@@ -426,8 +426,11 @@ fn corpus(gpa: std.mem.Allocator, exe: [:0]const u8) !void {
try d.mouse("wheel", -3, cell_w * 40, cell_h * 12);
try k.keep(&d, from, "11 a wheel's glide, every frame", true);
from = try k.mark(&d);
- try d.mouse("down", 1, cell_w * 20, cell_h * 10);
- try d.mouse("up", 1, cell_w * 20, cell_h * 10);
+ // The press and its release in one write (Detached.mouse's events),
+ // so the window reads them in one pass: written apart, a loaded
+ // machine let it read the press alone and draw a frame between, one
+ // more kept frame than the base's (78) and every one after shifted.
+ try d.typeKeys(f.at("\x1b]777;mouse;down;1;{d};{d}\x07\x1b]777;mouse;up;1;{d};{d}\x07", .{ cell_w * 20, cell_h * 10, cell_w * 20, cell_h * 10 }));
try k.keep(&d, from, "11 a click moves the caret, every frame", true);
from = try k.mark(&d);
try d.typeKeys("gg");