summaryrefslogtreecommitdiff
path: root/test/behaviour/placement.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-05 22:27:44 -0300
committerGabriel Schneider <[email protected]>2026-11-05 23:58:31 -0300
commitf930d53c58187381b2f0df6892546ac1c217c9db (patch)
tree5ca1eea4698b3c14178d2b1ae5d0251c0b884543 /test/behaviour/placement.zig
parent71e5a0f4a8685b385fac762995d45575b638179f (diff)
downloadpardes-f930d53c58187381b2f0df6892546ac1c217c9db.tar.gz
pardes-f930d53c58187381b2f0df6892546ac1c217c9db.zip
settings #1, Tagbottom goes, a pane's tag at its head the one value anyone used: layout.bodyTop and tagTop, mouse's seam and clampBorderRow, applyRowSplit, body_layer's copy and the tests' row arithmetic lose their other arm (reads deleted in Core.zig, layout.zig, mouse.zig, draw.zig, gui.zig, macos.zig, whose ABI slot 11 says 0 now, and ninep/events.zig, ninep/tree.zig, look.zig, Messages.zig), with the registry row, SPC t b, Help, /commands, the builtins JSON and the reference row; deleted: the snapshot scripts tagbottom, tagbottomshort and tagbottomimage with their goldens, the behaviour test "placement: under Tagbottom a look from a pane's text goes under its text too", the window scene 10-tagbottom with its gui-goldens line and the macOS parity check tags-bottom; tests that ran both ends of the tag run the head; a dump that kept the field loads without it; perf.zig's harness id moves in the two debug baselines (its reads of the field went); the window scenes after 10-tagbottom (12 to 15, 17) take new gui-goldens lines, the two Tagbottom writes gone from the scene and with them their words on the message row (the base window build running the same scenes gives the same frames); gates on tui: core-test 966/966, behaviour-test 243/243, unit-test 1484/1485, pane-test 171/172, snap all 105 scripts ok, process-test 0 of 37 failed; gui unit-test 1529/1530, gui-golden 0 of 1 failed
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/behaviour/placement.zig')
-rw-r--r--test/behaviour/placement.zig23
1 files changed, 0 insertions, 23 deletions
diff --git a/test/behaviour/placement.zig b/test/behaviour/placement.zig
index f6823feb..73d69883 100644
--- a/test/behaviour/placement.zig
+++ b/test/behaviour/placement.zig
@@ -108,29 +108,6 @@ test "placement: a look from a pane's text goes under its text when it has many
try std.testing.expectEqual(was[big][0] + was[big][1], now[big + 1][0] + now[big + 1][1]);
}
-test "placement: under Tagbottom a look from a pane's text goes under its text too, every line of it still in sight above its tag" {
- var tmp = std.testing.tmpDir(.{});
- defer tmp.cleanup();
- try tmp.dir.writeFile(std.testing.io, .{ .sub_path = "second.txt", .data = "second\n" });
- var dir: [4096]u8 = undefined;
- const at = dir[0..try tmp.dir.realPath(std.testing.io, &dir)];
- var s = try Session.initFile(std.testing.allocator, "alpha\nbeta\ngamma\n");
- defer s.deinit();
- s.detach();
- try s.write("/ctl", "size 200 60\n");
- try s.write("/ctl", "Tagbottom on\n");
- const top = try s.focused();
- try s.write(s.at("/pane/{d}/look", .{top}), s.at("{s}/second.txt\n", .{at}));
- // The first pane keeps its three lines with its tag under them, at its
- // foot: the split leaves it its tag and its text whichever end the tag
- // is on (makenewwindow, util.c:482-486). The new pane starts below.
- const alpha = (try s.where("alpha"))[1];
- try std.testing.expectEqual(alpha + 1, (try s.where("beta"))[1]);
- try std.testing.expectEqual(alpha + 2, (try s.where("gamma"))[1]);
- try std.testing.expectEqual(alpha + 3, try tagRow(&s, "/test.txt"));
- try std.testing.expectEqual(alpha + 4, (try s.where("second"))[1]);
-}
-
test "placement: a look from the middle of a column splits only the pane it came from, short ones round it kept short, through a Newcol too" {
var tmp = std.testing.tmpDir(.{});
defer tmp.cleanup();