summaryrefslogtreecommitdiff
path: root/test/column_drag.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-04 23:24:49 -0300
committerGabriel Schneider <[email protected]>2026-11-05 01:20:23 -0300
commit3ac1a89c2587fd97e58900f1162fad21048b0577 (patch)
tree12478c712c867547861f3e4a7509c570c2ca67ca /test/column_drag.zig
parentc71ec2ba07a791571509552d218dce38774428fa (diff)
downloadpardes-3ac1a89c2587fd97e58900f1162fad21048b0577.tar.gz
pardes-3ac1a89c2587fd97e58900f1162fad21048b0577.zip
pardes: TAG_GAP goes, a knob with one value (0): TAG_TEXT_INSET is the gutter, the tag's zero-width gap fill and its two offsets in draw and mouse go, and the test blocks behind `TAG_GAP > 0` that could never run
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/column_drag.zig')
-rw-r--r--test/column_drag.zig8
1 files changed, 0 insertions, 8 deletions
diff --git a/test/column_drag.zig b/test/column_drag.zig
index a089ab4a..f8f6344b 100644
--- a/test/column_drag.zig
+++ b/test/column_drag.zig
@@ -153,14 +153,6 @@ test "column grip is separate from compact text and the resize seam" {
try std.testing.expectEqual(pardes.FontRole.tagline, surface.at(rect.x + pardes.TAG_TEXT_INSET, pardes.TOPBAR_H).style.font_role);
try std.testing.expectEqual(pardes.FontRole.tagline, surface.at(rect.x + pardes.TAG_TEXT_INSET, pane_tag_y).style.font_role);
}
- if (pardes.TAG_GAP > 0) {
- const gap_x = p.col_x[1] + config.GUTTER;
- try std.testing.expectEqualStrings(" ", p.surface.at(gap_x, pardes.TOPBAR_H).grapheme());
- mouse(p, .press, gap_x);
- try std.testing.expect(p.drag != .column_move);
- try std.testing.expect(!p.header_drag);
- mouse(p, .release, gap_x);
- }
p.update(.{ .mouse = headerMouse(layer, 0, .press) });
try std.testing.expect(p.drag != .column_move);
try std.testing.expect(p.header_drag);